Nirjonadda
Member
Getting lot of Server error log after updated to Xenforo 2.1.8
Code:
ErrorException: [E_WARNING] Invalid argument supplied for foreach() src/addons/XenConcept/RestrictGuestViews/ControllerPlugin/ThreadRestrict.php:75
Generated by: Unknown account Mar 18, 2020 at 5:24 PM
Stack trace
#0 src/addons/XenConcept/RestrictGuestViews/ControllerPlugin/ThreadRestrict.php(75): XF::handlePhpError(2, '[E_WARNING] Inv...', '/home/nadda/pub...', 75, Array)
#1 src/addons/XenConcept/RestrictGuestViews/XF/Pub/Controller/Thread.php(39): XenConcept\RestrictGuestViews\ControllerPlugin\ThreadRestrict->hidePostsForThread(NULL)
#2 src/addons/xenMade/STFRT/XF/Pub/Controller/Thread.php(51): XenConcept\RestrictGuestViews\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#3 src/addons/XFA/TrophiesEnhancement/XF/Pub/Controller/Thread.php(19): xenMade\STFRT\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#4 src/addons/XFMG/XF/Pub/Controller/Thread.php(11): XFA\TrophiesEnhancement\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(350): XFMG\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Index', Object(XF\Mvc\RouteMatch), Object(XFMG\XF\Pub\Controller\Thread), NULL)
#7 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFMG\XF\Pub\Controller\Thread), NULL)
#8 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#10 src/XF.php(391): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
["url"] => string(27) "/threads/2020.69934/page-38"
["referrer"] => string(23) "https://www.google.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}