Cannot report content
InvalidArgumentException: Failed to convert to JSON. Error: Recursion detected [content_info] src/XF/Mvc/Entity/Entity.php:808
Generated by: Lorinna Astarel Oct 18, 2024 at 2:08 PM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(682): XF\Mvc\Entity\Entity->_castValueToType(Array, 'content_info', 65552, Array)
#1 src/XF/Mvc/Entity/Entity.php(612): XF\Mvc\Entity\Entity->set('content_info', Array)
#2 src/addons/vw/vw/Handler/Report/base.php(95): XF\Mvc\Entity\Entity->__set('content_info', Array)
#3 src/XF/Service/Report/CreatorService.php(86): vw\vw\Handler\Report\base->setupReportEntityContent(Object(XF\Entity\Report), Object(vw_DM_Page_Controller_XF2))
#4 src/XF/Service/Report/CreatorService.php(52): XF\Service\Report\CreatorService->createReport('vwpage', Object(vw_DM_Page_Controller_XF2))
#5 src/XF/Container.php(275): XF\Service\Report\CreatorService->__construct(Object(XF\Pub\App), 'vwpage', Object(vw_DM_Page_Controller_XF2))
#6 src/XF/App.php(1968): XF\Container->createObject('XF\\Service\\Repo...', Array)
#7 src/XF/Container.php(233): XF\App->XF\{closure}('XF\\Service\\Repo...', Array, Object(XF\Container))
#8 src/XF/App.php(3550): XF\Container->create('service', 'XF:Report\\Creat...', Array)
#9 src/XF.php(1206): XF\App->service('XF:Report\\Creat...', 'vwpage', Object(vw_DM_Page_Controller_XF2))
#10 src/addons/vw/vw/_core/model/report/xf2.php(22): XF::service('XF:Report\\Creat...', 'vwpage', Object(vw_DM_Page_Controller_XF2))
#11 src/addons/vw/vw/_core/controller/ui/imod/action/report/vw.php(62): vw_Report_Model_XF2->submit(Array)
#12 src/addons/vw/vw/_core/controller/ui/imod/action/base/vw.php(106): vw_UI_iMod_Action_Report_Controller->perform_doreport()
#13 src/addons/vw/vw/Handler/InlineMod/Base/AbstractAction.php(190): vw_UI_iMod_Action_base_Controller->process('doreport')
#14 src/XF/InlineMod/AbstractAction.php(175): vw\vw\Handler\InlineMod\Base\AbstractAction->applyToEntity(Object(vw_DM_Page_Controller_XF2), Array)
#15 src/XF/InlineMod/AbstractAction.php(161): XF\InlineMod\AbstractAction->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
#16 src/XF/Pub/Controller/InlineModController.php(133): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
#17 src/addons/vw/vw/XF/Pub/Controller/InlineMod.php(55): XF\Pub\Controller\InlineModController->actionPerform()
#18 src/XF/Mvc/Dispatcher.php(362): vw\vw\XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
#19 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'Perform', Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
#20 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
#21 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#22 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#23 src/XF.php(806): XF\App->run()
#24 index.php(23): XF::runApp('XF\\Pub\\App')
#25 {main}
-------------
Previous InvalidArgumentException: Failed to convert to JSON. Error: Recursion detected - src/XF/Mvc/Entity/ValueFormatter.php:175
#0 src/XF/Mvc/Entity/Entity.php(804): XF\Mvc\Entity\ValueFormatter->castValueToType(Array, 65552, Array)
#1 src/XF/Mvc/Entity/Entity.php(682): XF\Mvc\Entity\Entity->_castValueToType(Array, 'content_info', 65552, Array)
#2 src/XF/Mvc/Entity/Entity.php(612): XF\Mvc\Entity\Entity->set('content_info', Array)
#3 src/addons/vw/vw/Handler/Report/base.php(95): XF\Mvc\Entity\Entity->__set('content_info', Array)
#4 src/XF/Service/Report/CreatorService.php(86): vw\vw\Handler\Report\base->setupReportEntityContent(Object(XF\Entity\Report), Object(vw_DM_Page_Controller_XF2))
#5 src/XF/Service/Report/CreatorService.php(52): XF\Service\Report\CreatorService->createReport('vwpage', Object(vw_DM_Page_Controller_XF2))
#6 src/XF/Container.php(275): XF\Service\Report\CreatorService->__construct(Object(XF\Pub\App), 'vwpage', Object(vw_DM_Page_Controller_XF2))
#7 src/XF/App.php(1968): XF\Container->createObject('XF\\Service\\Repo...', Array)
#8 src/XF/Container.php(233): XF\App->XF\{closure}('XF\\Service\\Repo...', Array, Object(XF\Container))
#9 src/XF/App.php(3550): XF\Container->create('service', 'XF:Report\\Creat...', Array)
#10 src/XF.php(1206): XF\App->service('XF:Report\\Creat...', 'vwpage', Object(vw_DM_Page_Controller_XF2))
#11 src/addons/vw/vw/_core/model/report/xf2.php(22): XF::service('XF:Report\\Creat...', 'vwpage', Object(vw_DM_Page_Controller_XF2))
#12 src/addons/vw/vw/_core/controller/ui/imod/action/report/vw.php(62): vw_Report_Model_XF2->submit(Array)
#13 src/addons/vw/vw/_core/controller/ui/imod/action/base/vw.php(106): vw_UI_iMod_Action_Report_Controller->perform_doreport()
#14 src/addons/vw/vw/Handler/InlineMod/Base/AbstractAction.php(190): vw_UI_iMod_Action_base_Controller->process('doreport')
#15 src/XF/InlineMod/AbstractAction.php(175): vw\vw\Handler\InlineMod\Base\AbstractAction->applyToEntity(Object(vw_DM_Page_Controller_XF2), Array)
#16 src/XF/InlineMod/AbstractAction.php(161): XF\InlineMod\AbstractAction->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
#17 src/XF/Pub/Controller/InlineModController.php(133): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
#18 src/addons/vw/vw/XF/Pub/Controller/InlineMod.php(55): XF\Pub\Controller\InlineModController->actionPerform()
#19 src/XF/Mvc/Dispatcher.php(362): vw\vw\XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
#20 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'Perform', Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
#21 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
#22 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#23 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#24 src/XF.php(806): XF\App->run()
#25 index.php(23): XF::runApp('XF\\Pub\\App')
#26 {main}
Request state
array(4) {
["url"] => string(19) "/inline-mod/perform"
["referrer"] => string(58) "https://chroniclesrp.net/Folklore/Sandbox:Svarga?do=report"
["_GET"] => array(1) {
["/inline-mod/perform"] => string(0) ""
}
["_POST"] => array(11) {
["_xfToken"] => string(8) "********"
["reason"] => string(4) "test"
["returnid"] => string(4) "4480"
["returntype"] => string(1) "1"
["ids"] => array(1) {
[10000000004480] => string(14) "10000000004480"
}
["type"] => string(6) "vwpage"
["action"] => string(6) "report"
["confirmed"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
["_xfWithData"] => string(1) "1"
["_xfRequestUri"] => string(34) "/Folklore/Sandbox:Svarga?do=report"
}
}