Arty
Well-known member
It means user_id somehow disappears between retrieving it from database and sending it to template.
Next thing to check is view class that is called before executing template: library/XenForo/ViewPublic/Thread/View.php
Before editing that file check id of post that has empty user_id. To find it move mouse of time stamp below post and look at hash of that link. It should be like #post-12345
At the end of that file find
add before it
Change $debug value to post id. Reload page in browser to see output. It should output something like
Next thing to check is view class that is called before executing template: library/XenForo/ViewPublic/Thread/View.php
Before editing that file check id of post that has empty user_id. To find it move mouse of time stamp below post and look at hash of that link. It should be like #post-12345
At the end of that file find
Code:
}
}
Code:
$debug = 85926;
if (isset($this->_params['posts'][$debug]))
{
die('User id: ' . var_export($this->_params['posts'][$debug]['user_id'], true));
}
Code:
User id: 248