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

Problem in updateSessionActivity

Dan

Well-known member
#1
Anybody run into following problem:
stack.png
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;
 

Mike

XenForo developer
Staff member
#2
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.