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.
On a virgin installation, when setting up a new user, and clicking on the q=user/reset link provided in the email, I get the following error:
Fatal error: Cannot use string offset as an array in /path/to/includes/form.inc on line 641
Logging in using the q=user link works just fine.
Comment | File | Size | Author |
---|---|---|---|
#3 | user_reset_help.patch | 1.06 KB | ChrisKennedy |
Comments
Comment #1
Jonnay CreditAttribution: Jonnay commented(Sorry, it does say so in bold...)
OS: Debian GNU Linux (stable)
PHP Version: 5.1.6 Running with APC (3.0.10) on Apache 1.3
Comment #2
tcblack CreditAttribution: tcblack commentedConfirmed on my install.
Cannot use string offset as an array in /home/stilbla0/public_html/drupalbeta/includes/form.inc on line 641
Occurs when I attempt to reset a password and click the supplied link from the email.
Comment #3
ChrisKennedy CreditAttribution: ChrisKennedy commentedI believe the problem lies in this commit:
http://cvs.drupal.org/viewcvs/drupal/drupal/modules/user/user.module?r1=...
The attached patch should fix the problem.
The form['help'] code has an error in the nesting of the parentheses:
Comment #4
RobRoy CreditAttribution: RobRoy commentedNice catch.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #6
ChrisKennedy CreditAttribution: ChrisKennedy commentedClearer title for future reference.
Comment #7
scriptnews CreditAttribution: scriptnews commentedSame error, some lines below ...
form.inc on line 658
Comment #8
(not verified) CreditAttribution: commented