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

Problem in updateSessionActivity

Discussion in 'XenForo Development Discussions' started by Dan, Sep 21, 2013.

  1. Dan

    Dan Well-Known Member

    Anybody run into following problem:
    Server Error
    Uninitialized string offset: 0
    [*]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
    It's a problem inside the updateSessionActivity method but i have no idea why paramKey isn't an array:
    $logParams = array();
         foreach ($inputParams AS $paramKey => $paramValue)
           if ($paramKey[0] == '_' || !is_scalar($paramValue))
  2. Mike

    Mike XenForo Developer Staff Member

    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.
    Dan likes this.

Share This Page