Duplicate InvalidArgumentException: Attempted to convert object to JSON array (cache_results) src/XF/Mvc/Entity/Entity.php:766

Marcus

Well-known member
Affected version
2 beta 3
Code:
InvalidArgumentException: Attempted to convert object to JSON array (cache_results) src/XF/Mvc/Entity/Entity.php:766

#0 /src/XF/Mvc/Entity/Entity.php(617): XF\Mvc\Entity\Entity->_castValueToType(Object(XF\Mvc\Entity\ArrayCollection), 'cache_results', 65552, Array)
#1 /src/XF/Mvc/Entity/Entity.php(547): XF\Mvc\Entity\Entity->set('cache_results', Object(XF\Mvc\Entity\ArrayCollection))
#2 /src/XF/Service/MemberStat/Preparer.php(65): XF\Mvc\Entity\Entity->__set('cache_results', Object(XF\Mvc\Entity\ArrayCollection))
#3 /src/XF/Service/MemberStat/Preparer.php(88): XF\Service\MemberStat\Preparer->cache()
#4 /src/XF/Entity/MemberStat.php(68): XF\Service\MemberStat\Preparer->getResults(true)
#5 /src/XF/Pub/Controller/Member.php(110): XF\Entity\MemberStat->getResults(true)
#6 /src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Member->actionIndex(Object(XF\Mvc\ParameterBag))
#7 /src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'Index', 'html', Object(XF\Mvc\ParameterBag), 'members', Object(XF\Pub\Controller\Member), NULL)
#8 /src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 /src/XF/App.php(1787): XF\Mvc\Dispatcher->run()
#10 /src/XF.php(326): XF\App->run()
#11 /index.php(13): XF::runApp('XF\\Pub\\App')
#12 {main}

array(4) {
  ["url"] => string(10) "/members/"
  ["referrer"] => string(40) "/whats-new/"
  ["_GET"] => array(1) {
    ["/members/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
Last edited:
Back
Top Bottom