Quote:
Originally Posted by squishi
I am reporting this here, because it is the forum that offers help and assistance.
|
I think there was some confusion because you posted "I trusted you guys to not screw the code up" and we're not the guys.
Quote:
The backtrace in functions.php > fetchuserinfo() goes like this:
In words:
fetch_userinfo() is called in the vB_Session class in class_core.php. VB_Session is called in init.php, before $vbulletin->userinfo is defined. The "global" statement in fetch_userinfo() will fail. $vbulletin->userinfo is null.
Can somebody confirm that $vbulletin->userinfo is undefined in their fetch_userinfo_query hook?
|
fetch_userinfo() is a member function of the session class, so it shoudn't be the same as the fetch_userinfo() that's in includes/functions.php. If you got that trace from a trace call at the fetch_userinfo_query hook, [S]then something's very wrong[/S]. ETA: no, I take that back - there is a member function but I don't think it's the one that should be called....but it does look like the other fetch_userinfo() needs the userinfo array to exist already, as you mentioned in the first post.