• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Cannot report content

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Cannot report content

    • Issue Tools
      • View Changes
    1. issueid=6452 October 18, 2024 9:09 AM
      expanserpb expanserpb is offline
      Junior Member
      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"
      }
      }
    Issue Details
    Issue Number 6452
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Moderator Tools
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.8
    Fixed Version 4.1.8
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. October 18, 2024 9:46 AM
      pegasus pegasus is offline
      VaultWiki Team
      In src/addons/vw/vw/Handler/Report/base.php, find:
      Code:
      		if (isset($item['creatorip']))
      		{
      			$item['creatorip'] = \vw_Hard_Core::model('IP')->format($item['creatorip']);
      		}
      		if (isset($item['ipaddress']))
      		{
      			$item['ipaddress'] = \vw_Hard_Core::model('IP')->format($item['ipaddress']);
      		}
      Replace with:
      Code:
      \vw_Hard_Core::model('Cron/Deferred')->sanitize_item($item);
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 6:31 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.