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

marcingy - December 18, 2007 - 23:51

by user viewed I mean for example http://localhost/user/1

#2

douggreen - December 19, 2007 - 02:40

The offending line is user.module +2337. It's passing an object to drupal_alter, but drupal_alter expects an array.

#3

rho_ - December 19, 2007 - 05:44
Status:active» patch (code needs review)

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.

AttachmentSize
user_glitch.patch786 bytes

#4

mpare - December 19, 2007 - 04:58
Status:patch (code needs review)» patch (reviewed & tested by the community)

Patch applied cleanly to fresh checkout of head. Issue appears to have been resolved. Simple testing performed without ill effect.

#5

scor - December 19, 2007 - 11:11

good catch. patch working and rerolled to fix offset.

AttachmentSize
user_glitch1.patch789 bytes

#6

Gábor Hojtsy - December 19, 2007 - 11:23
Status:patch (reviewed & tested by the community)» fixed

Ha, thanks, committed.

#7

Anonymous - January 2, 2008 - 11:24
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.