XF 2.2 Odd error in xenforo error logs

Daveo16

Member
This is the odd error we are seeing in the xenForo Error Logs, repetitively...

TypeError: substr(): Argument #1 ($string) must be of type string, array given src/XF/Repository/SessionActivity.php:216

Stack trace
Code:
#0 src/XF/Repository/SessionActivity.php(216): substr(Array, 0, 25)
#1 src/XF/Pub/Controller/AbstractController.php(85): XF\Repository\SessionActivity->updateSessionActivity(0, 'xx.xx.xx.xx', 'XF\\Pub\\Controll...', 'List', Array, 'valid', Array)
#2 src/XF/Pub/Controller/AbstractController.php(45): XF\Pub\Controller\AbstractController->updateSessionActivity('List', Object(XF\Mvc\ParameterBag), Object(XF\Mvc\Reply\View))
#3 src/XF/Mvc/Controller.php(360): XF\Pub\Controller\AbstractController->postDispatchType('List', Object(XF\Mvc\ParameterBag), Object(XF\Mvc\Reply\View))
#4 src/XF/Mvc/Dispatcher.php(385): XF\Mvc\Controller->postDispatch('List', Object(XF\Mvc\ParameterBag), Object(XF\Mvc\Reply\View))
#5 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF\\Pub\\Controll...', 'List', Object(XF\Mvc\RouteMatch), Object(XV\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute))
#6 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XV\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute))
#7 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#9 src/XF.php(524): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}

Request state
Code:
array(4) {
  ["url"] => string(1) "/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Any idea how to fix this, as we are not sure what's causing it to appear and it only started appearing within the last 24 hours, tho no new addons or addon updates have been installed.

Site is running on Debian 11, nginx, PHP 8.1, MariaDB 10.5. Also using redis & ElasticSearch.
 
Last edited:
This might hit other people. It started happening to us today as well, out of the blue somehow. It broke the site for guests as well somehow.
 
Top Bottom