• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed  Missing phrase causing error log

F

Floris

Guest
#1
phrase_cache is not in the system, fresh install 1 stable
XenForo_Phrase::setPhrases($language['phrase_cache']);



Server Error Log

Error Info
ErrorException: Argument 1 passed to XenForo_Phrase::setPhrases() must be an array, boolean given, called in /home/x/forum/library/XenForo/Visitor.php on line 412 and defined - library/XenForo/Phrase.php:310
Generated By: Unknown Account, Today at 12:16 PM

Stack Trace

#0 /home/x/forum/library/XenForo/Phrase.php(310): XenForo_Application::handlePhpError(false) #1 /home/x/forum/library/XenForo/Visitor.php(412): XenForo_Phrase::setPhrases(false, Array) #2 /home/x/forum/library/XenForo/Session.php(199): XenForo_Visitor::setup(Object(Zend_Controller_Request_Http)) #3 /home/x/forum/library/XenForo/Controller.php(286): XenForo_Session::startPublicSession('Errornotfound') #4 /home/x/forum/library/XenForo/Controller.php(298): XenForo_Controller->_setupSession('Errornotfound') #5 /home/x/forum/library/XenForo/FrontController.php(309): XenForo_Controller->preDispatch(Object(XenForo_RouteMatch)) #6 /home/x/forum/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch() #7 /home/x/forum/index.php(17): XenForo_FrontController->run() #8 {main}

Request State

array(3) { ["url"] => string(31) "http://x/favicon.ico" ["_GET"] => array(0) { } ["_POST"] => array(0) { }
 

Mike

XenForo developer
Staff member
#2
I actually think that your phrase cache may have been corrupted for some bizarre reason. Regardless, I have changed the code to work around this.