Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Inserting a user does not necessarily mean that a $_POST['pass'] exists (Commerce checkout processing for Anonymous users for example). Thus, the following error is thrown:
Notice: Undefined index: pass in aes_user_alter() (line 432 of /public_html/NRDC/GreenGifts/drupal-7.7/sites/all/modules/aes/aes.module).
Comment | File | Size | Author |
---|---|---|---|
#2 | 1302908-2-check-isset-on-post.patch | 1.58 KB | EvanDonovan |
Comments
Comment #1
ekristen CreditAttribution: ekristen commentedThis function should to check to see if aes passwords is even enabled and if it isn't just return immediately.
This specific error is caused because the function assumes there is always a post which there isn't. If someone calls user_save the hook_user_alter gets called, but no post took place.
Comment #2
EvanDonovan CreditAttribution: EvanDonovan commentedHere's a patch. Let me know if this solves it.
Comment #3
EvanDonovan CreditAttribution: EvanDonovan commentedTagging.
Comment #4
ekristen CreditAttribution: ekristen commentedGood to go.
Comment #5
EvanDonovan CreditAttribution: EvanDonovan commentedShould only be marked "fixed" when the patch is committed. I've just been granted maintainership, so will commit soon.
Comment #6
13rac1 CreditAttribution: 13rac1 commented+1 Works as described. Commit?
Comment #7
jnettikTested and works for me as well.
Comment #8
EvanDonovan CreditAttribution: EvanDonovan commentedCommitted to -dev: http://drupalcode.org/project/aes.git/commit/32280ea
Comment #9
EvanDonovan CreditAttribution: EvanDonovan commented