Something is amiss with my installation indeed. I looked at other plugins that hook into the fetch_userinfo_query hook and they use $vbulletin->userinfo['userid'] as well.
You are probably right. I will add the trace to the plugin instead of the function.
--------------- Added [DATE]1339248596[/DATE] at [TIME]1339248596[/TIME] ---------------
The result is the same.
I added this code to the fetch_userinfo_query hook in the plugin where $vbulletin->userinfo is null:
PHP Code:
if (isset($_SERVER["REMOTE_ADDR"]) && $_SERVER["REMOTE_ADDR"] == "123.123.123.123") { // my IP
debug_print_backtrace();
die();
}
Note: if you add this code, you will have to globally disable plugins to remove the code again.
Quote:
#0 eval() called at [/www/virtual/forum/includes/functions.php:1388]
#1 fetch_userinfo(1, 0, 0) called at [/www/virtual/forum/includes/class_core.php:2745]
#2 vB_Session->vB_Session(vB_Registry Object (...)
#3 require_once(/www/virtual/forum/includes/init.php) called at [/www/virtual/forum/cpadmin/global.php:34]
#4 require_once(/www/virtual/forum/cpadmin/global.php) called at [/www/virtual/forum/cpadmin/plugin.php:25]
|
fetch_userinfo is called from vB_Session which traces back to init.php. At this point in time, $vbulletin->userinfo is not defined yet, as mentioned in the post above.