Fixed Undefined index: isIgnored - when viewing forum

skhms

Active member
Think this is new for 1.1 beta 3.
Undefined index: isIgnored

XenForo_Application::handlePhpError() in XenForo/ControllerPublic/Forum.php at line 147
XenForo_ControllerPublic_Forum->actionIndex() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in C:/Program Files (x86)/Zend/Apache2/htdocs/thedonnastourdb/index.php at line 13
Happens when you got a thread started by a guest.
Seems to be the prepareThread function in XenForo_Model_Thread. The isIgnored flag isn't set when the $thread['user_group_id'] value is uninitialized. Which happens when a guest has started the thread.

/SK
 

Jake Bunce

XenForo moderator
Staff member
Confirmed. The error happens on forum_view when the thread listing contains a guest thread. The viewer must be logged in.
 

Mike

XenForo developer
Staff member
prepareUser is now always called, even for guest messages. Any modifications to this function must be able to survive potentially being given an incomplete (heavily null) user record.
 
Top