Hi,
I'm using Drupal to programatically create a user, and I get this exception each time I create a user. Any thoughts on how to avoid this?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | persistent_login-1273700-1.patch | 781 bytes | gapple |
Hi,
I'm using Drupal to programatically create a user, and I get this exception each time I create a user. Any thoughts on how to avoid this?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | persistent_login-1273700-1.patch | 781 bytes | gapple |
Comments
Comment #1
gappleThank you for the bug report.
This should be a quick fix to test that a uid exists before trying to clear tokens. Please test that the attached patch resolves the issue.
Comment #2
nagiek commentedWill test and let you know.
In the meantime, I switched from user_save to drupal_form_submit('user_register_form', $form_state), which doesn't have the exception.
Thanks for the quick response!
Comment #3
nagiek commentedWorks perfect. Thanks.
Comment #4
nagiek commentedComment #5
gappleMarking RTBC so I remember to add this to the 7.x branch and push.
Comment #6
gappleFixed in commit 250993e9f2ba9b238130d830b2d8cb469c29810a