Problem in updateSessionActivity

Dan

Well-known member
Anybody run into following problem:
stack.webp
Code:
Server Error
Uninitialized string offset: 0

[LIST=1]
[*]XenForo_Application::handlePhpError() in XenForo/Model/User.php at line 1071
[*]XenForo_Model_User->updateSessionActivity() in XenForo/Controller.php at line 467
[*]XenForo_Controller->updateSessionActivity() in XenForo/Controller.php at line 357
[*]XenForo_Controller->postDispatch() in XenForo/FrontController.php at line 344
[*]XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
[/LIST]

It's a problem inside the updateSessionActivity method but i have no idea why paramKey isn't an array:
Code:
$logParams = array();
     foreach ($inputParams AS $paramKey => $paramValue)
     {
       if ($paramKey[0] == '_' || !is_scalar($paramValue))
       {
         continue;
 
It's not looking for an array -- it's using that as a string offset. You're setting a user param in the route prefixes without a name.
 
  • Like
Reactions: Dan
Back
Top Bottom