Fatal error when viewing user
marcingy - December 18, 2007 - 23:50
| Project: | Drupal |
| Version: | 6.x-dev |
| Component: | base system |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
Using the last version of code form checked out from CVS when any user is viewed (there may be other insistances but I haven't seen them) the following error is displayed:
Fatal error: Cannot use object of type stdClass as array in D:\or6-full\includes\common.inc on line 2843

#1
by user viewed I mean for example http://localhost/user/1
#2
The offending line is user.module +2337. It's passing an object to drupal_alter, but drupal_alter expects an array.
#3
I believe this error stemmed from some changes in the declaration to drupal_alter in common.inc.
Rolled a small patch that seems to fix the issue.
Please review.
#4
Patch applied cleanly to fresh checkout of head. Issue appears to have been resolved. Simple testing performed without ill effect.
#5
good catch. patch working and rerolled to fix offset.
#6
Ha, thanks, committed.
#7
Automatically closed -- issue fixed for two weeks with no activity.