• 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
    • Error reporting wiki page

    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: Error reporting wiki page

    • Issue Tools
      • View Changes
    1. issueid=6151 January 12, 2021 12:54 PM
      expanserpb expanserpb is offline
      Junior Member
      Error reporting wiki page

      Have tried with other pages and get the same thing.


      InvalidArgumentException: Failed to convert to JSON. Error: Malformed UTF-8 characters, possibly incorrectly encoded [content_info] src/XF/Mvc/Entity/Entity.php:759
      Generated by: TheGreatOldVang Jan 12, 2021 at 3:35 PM
      Stack trace
      #0 src/XF/Mvc/Entity/Entity.php(637): XF\Mvc\Entity\Entity->_castValueToType(Array, 'content_info', 65552, Array)
      #1 src/XF/Mvc/Entity/Entity.php(567): XF\Mvc\Entity\Entity->set('content_info', Array)
      #2 src/addons/vw/vw/Handler/Report/base.php(86): XF\Mvc\Entity\Entity->__set('content_info', Array)
      #3 src/XF/Service/Report/Creator.php(77): vw\vw\Handler\Report\base->setupReportEntityContent(Object(XF\Entity\Report), Object(vw_DM_Page_Controller_XF2))
      #4 src/XF/Service/Report/Creator.php(43): XF\Service\Report\Creator->createReport('vwpage', Object(vw_DM_Page_Controller_XF2))
      #5 src/XF/Container.php(270): XF\Service\Report\Creator->__construct(Object(XF\Pub\App), 'vwpage', Object(vw_DM_Page_Controller_XF2))
      #6 src/XF/App.php(1665): XF\Container->createObject('XF\\Service\\Repo...', Array)
      #7 src/XF/Container.php(228): XF\App->XF\{closure}('XF\\Service\\Repo...', Array, Object(XF\Container))
      #8 src/XF/App.php(2953): XF\Container->create('service', 'XF:Report\\Creat...', Array)
      #9 src/XF.php(865): 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(66): 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(183): vw_UI_iMod_Action_base_Controller->process('doreport')
      #14 src/XF/InlineMod/AbstractAction.php(87): vw\vw\Handler\InlineMod\Base\AbstractAction->applyToEntity(Object(vw_DM_Page_Controller_XF2), Array)
      #15 src/XF/InlineMod/AbstractAction.php(80): XF\InlineMod\AbstractAction->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
      #16 src/XF/Pub/Controller/InlineMod.php(131): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
      #17 src/addons/vw/vw/XF/Pub/Controller/InlineMod.php(41): XF\Pub\Controller\InlineMod->actionPerform()
      #18 src/XF/Mvc/Dispatcher.php(350): vw\vw\XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
      #19 src/XF/Mvc/Dispatcher.php(257): 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(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
      #21 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #22 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
      #23 src/XF.php(488): XF\App->run()
      #24 index.php(20): XF::runApp('XF\\Pub\\App')
      #25 {main}

      -------------

      Previous InvalidArgumentException: Failed to convert to JSON. Error: Malformed UTF-8 characters, possibly incorrectly encoded - src/XF/Mvc/Entity/ValueFormatter.php:170
      #0 src/XF/Mvc/Entity/Entity.php(755): XF\Mvc\Entity\ValueFormatter->castValueToType(Array, 65552, Array)
      #1 src/XF/Mvc/Entity/Entity.php(637): XF\Mvc\Entity\Entity->_castValueToType(Array, 'content_info', 65552, Array)
      #2 src/XF/Mvc/Entity/Entity.php(567): XF\Mvc\Entity\Entity->set('content_info', Array)
      #3 src/addons/vw/vw/Handler/Report/base.php(86): XF\Mvc\Entity\Entity->__set('content_info', Array)
      #4 src/XF/Service/Report/Creator.php(77): vw\vw\Handler\Report\base->setupReportEntityContent(Object(XF\Entity\Report), Object(vw_DM_Page_Controller_XF2))
      #5 src/XF/Service/Report/Creator.php(43): XF\Service\Report\Creator->createReport('vwpage', Object(vw_DM_Page_Controller_XF2))
      #6 src/XF/Container.php(270): XF\Service\Report\Creator->__construct(Object(XF\Pub\App), 'vwpage', Object(vw_DM_Page_Controller_XF2))
      #7 src/XF/App.php(1665): XF\Container->createObject('XF\\Service\\Repo...', Array)
      #8 src/XF/Container.php(228): XF\App->XF\{closure}('XF\\Service\\Repo...', Array, Object(XF\Container))
      #9 src/XF/App.php(2953): XF\Container->create('service', 'XF:Report\\Creat...', Array)
      #10 src/XF.php(865): 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(66): 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(183): vw_UI_iMod_Action_base_Controller->process('doreport')
      #15 src/XF/InlineMod/AbstractAction.php(87): vw\vw\Handler\InlineMod\Base\AbstractAction->applyToEntity(Object(vw_DM_Page_Controller_XF2), Array)
      #16 src/XF/InlineMod/AbstractAction.php(80): XF\InlineMod\AbstractAction->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
      #17 src/XF/Pub/Controller/InlineMod.php(131): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
      #18 src/addons/vw/vw/XF/Pub/Controller/InlineMod.php(41): XF\Pub\Controller\InlineMod->actionPerform()
      #19 src/XF/Mvc/Dispatcher.php(350): vw\vw\XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
      #20 src/XF/Mvc/Dispatcher.php(257): 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(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
      #22 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #23 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
      #24 src/XF.php(488): XF\App->run()
      #25 index.php(20): XF::runApp('XF\\Pub\\App')
      #26 {main}
      Request state
      array(4) {
      ["url"] => string(19) "/inline-mod/perform"
      ["referrer"] => string(55) "https://chroniclesrp.net/Folklore/Meton-Kaiju?do=report"
      ["_GET"] => array(1) {
      ["/inline-mod/perform"] => string(0) ""
      }
      ["_POST"] => array(11) {
      ["reason"] => string(70) "I'd like it deleted please. I mad eit and I'd like it gone. Thanks "
      ["returnid"] => string(4) "2234"
      ["returntype"] => string(1) "1"
      ["ids"] => array(1) {
      [10000000002234] => string(14) "10000000002234"
      }
      ["type"] => string(6) "vwpage"
      ["action"] => string(6) "report"
      ["confirmed"] => string(1) "1"
      ["_xfToken"] => string(8) "********"
      ["_xfRequestUri"] => string(31) "/Folklore/Meton-Kaiju?do=report"
      ["_xfWithData"] => string(1) "1"
      ["_xfResponseType"] => string(4) "json"
      }
      }
    Issue Details
    Issue Number 6151
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.1
    Fixed Version 4.1.2
    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. January 12, 2021 2:38 PM
      pegasus pegasus is offline
      VaultWiki Team
      Difficult to tell because the trace doesn't specify which portion of the data could not be encoded, but I believe this occurs because of a storage change of IP addresses from plaintext to binary in VW 4.1.x, which made it consistent with XenForo IP storage. Binary data cannot be JSON-encoded, so we still need the plaintext version when issuing a report.

      In src/addons/vw/vw/Handler/Report/base.php, find:
      Code:
      $report->content_user_id = $userid;
      BEFORE it, add:
      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']);
      		}
      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 8:33 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.