• 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
    • InvalidArgumentException: Attempted to convert NULL to integer [parentprefixid] src/XF/Mvc/Entity/Entity.php:697

    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: InvalidArgumentException: Attempted to convert NULL to integer [parentprefixid] src/XF/Mvc/Entity/Entity.php:697

    • Issue Tools
      • View Changes
    1. issueid=5600 January 17, 2019 9:53 AM
      hollosch hollosch is offline
      Senior Member
      InvalidArgumentException: Attempted to convert NULL to integer [parentprefixid] src/XF/Mvc/Entity/Entity.php:697

      InvalidArgumentException: Attempted to convert NULL to integer [parentprefixid] src/XF/Mvc/Entity/Entity.php:697
      Generiert von: hollosch 17. Januar 2019 um 14:35
      Stack-Trace
      #0 src/addons/vw/vw/XF/Entity/Entity.php(785): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'parentprefixid', 2, Array)
      #1 src/XF/Mvc/Entity/Entity.php(575): vw\vw\XF\Entity\Entity->_castValueToType(NULL, 'parentprefixid', 2, Array)
      #2 src/addons/vw/vw/XF/Entity/Entity.php(356): XF\Mvc\Entity\Entity->set('parentprefixid', NULL, Array)
      #3 src/addons/vw/vw/_core/controller/dm/xf2.php(198): vw\vw\XF\Entity\Entity->set('parentprefixid', 22)
      #4 src/addons/vw/vw/_core/controller/dm/base/routable/vw.php(499): vw_DM_Controller_XF2->set('parentprefixid', 22)
      #5 src/addons/vw/vw/_core/controller/dm/page/vw.php(1550): vw_DM_Base_Routable_Controller->save_path(Array)
      #6 src/addons/vw/vw/XF/Entity/Entity.php(574): vw_DM_Page_Controller->post_save_each()
      #7 src/XF/Mvc/Entity/Entity.php(1165): vw\vw\XF\Entity\Entity->_postSave()
      #8 src/addons/vw/vw/XF/Entity/Entity.php(501): XF\Mvc\Entity\Entity->save(false, false)
      #9 src/addons/vw/vw/_core/controller/dm/xf2.php(363): vw\vw\XF\Entity\Entity->vwSave()
      #10 src/addons/vw/vw/_core/controller/ui/imod/action/move/vw.php(106): vw_DM_Controller_XF2->save()
      #11 src/addons/vw/vw/_core/controller/ui/imod/action/move/vw.php(87): vw_UI_iMod_Action_Move_Controller->process_move_type(Array, Array)
      #12 src/addons/vw/vw/_core/controller/ui/imod/action/base/vw.php(91): vw_UI_iMod_Action_Move_Controller->perform_domove()
      #13 src/addons/vw/vw/Handler/InlineMod/Base/AbstractAction.php(183): vw_UI_iMod_Action_base_Controller->process('domove')
      #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(249): vw\vw\XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
      #19 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'Perform', 'json', Object(XF\Mvc\ParameterBag), '', Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
      #20 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #21 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
      #22 src/XF.php(333): XF\App->run()
      #23 index.php(13): XF::runApp('XF\\Pub\\App')
      #24 {main}

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

      Previous InvalidArgumentException: Attempted to convert NULL to integer - src/XF/Mvc/Entity/ValueFormatter.php:141
      #0 src/XF/Mvc/Entity/Entity.php(693): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 2, Array)
      #1 src/addons/vw/vw/XF/Entity/Entity.php(785): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'parentprefixid', 2, Array)
      #2 src/XF/Mvc/Entity/Entity.php(575): vw\vw\XF\Entity\Entity->_castValueToType(NULL, 'parentprefixid', 2, Array)
      #3 src/addons/vw/vw/XF/Entity/Entity.php(356): XF\Mvc\Entity\Entity->set('parentprefixid', NULL, Array)
      #4 src/addons/vw/vw/_core/controller/dm/xf2.php(198): vw\vw\XF\Entity\Entity->set('parentprefixid', 22)
      #5 src/addons/vw/vw/_core/controller/dm/base/routable/vw.php(499): vw_DM_Controller_XF2->set('parentprefixid', 22)
      #6 src/addons/vw/vw/_core/controller/dm/page/vw.php(1550): vw_DM_Base_Routable_Controller->save_path(Array)
      #7 src/addons/vw/vw/XF/Entity/Entity.php(574): vw_DM_Page_Controller->post_save_each()
      #8 src/XF/Mvc/Entity/Entity.php(1165): vw\vw\XF\Entity\Entity->_postSave()
      #9 src/addons/vw/vw/XF/Entity/Entity.php(501): XF\Mvc\Entity\Entity->save(false, false)
      #10 src/addons/vw/vw/_core/controller/dm/xf2.php(363): vw\vw\XF\Entity\Entity->vwSave()
      #11 src/addons/vw/vw/_core/controller/ui/imod/action/move/vw.php(106): vw_DM_Controller_XF2->save()
      #12 src/addons/vw/vw/_core/controller/ui/imod/action/move/vw.php(87): vw_UI_iMod_Action_Move_Controller->process_move_type(Array, Array)
      #13 src/addons/vw/vw/_core/controller/ui/imod/action/base/vw.php(91): vw_UI_iMod_Action_Move_Controller->perform_domove()
      #14 src/addons/vw/vw/Handler/InlineMod/Base/AbstractAction.php(183): vw_UI_iMod_Action_base_Controller->process('domove')
      #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(249): vw\vw\XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
      #20 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'Perform', 'json', Object(XF\Mvc\ParameterBag), '', Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
      #21 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #22 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
      #23 src/XF.php(333): XF\App->run()
      #24 index.php(13): XF::runApp('XF\\Pub\\App')
      #25 {main}
      Status der Anfrage
      array(4) {
      ["url"] => string(19) "/inline-mod/perform"
      ["referrer"] => string(44) "https://regio-portal.wiki/wiki/LJRBW?do=list"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(9) {
      ["toarea"] => string(4) "4493"
      ["ids"] => array(8) {
      [10000000006848] => string(14) "10000000006848"
      [10000000006858] => string(14) "10000000006858"
      [10000000007533] => string(14) "10000000007533"
      [10000000007546] => string(14) "10000000007546"
      [10000000007550] => string(14) "10000000007550"
      [10000000007555] => string(14) "10000000007555"
      [10000000007647] => string(14) "10000000007647"
      [10000000007783] => string(14) "10000000007783"
      }
      ["type"] => string(6) "vwpage"
      ["action"] => string(4) "move"
      ["confirmed"] => string(1) "1"
      ["_xfToken"] => string(8) "********"
      ["_xfRequestUri"] => string(19) "/wiki/LJRBW?do=list"
      ["_xfWithData"] => string(1) "1"
      ["_xfResponseType"] => string(4) "json"
      }
      }
    Issue Details
    Issue Number 5600
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 Alpha 1 Public
    Fixed Version 4.1.0 Alpha 1 Public
    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 17, 2019 2:47 PM
      pegasus pegasus is offline
      VaultWiki Team
      I would advise you to restart PHP and/or upgrade to a newer version of PHP. The trace as-detailed is logically impossible because the contents of a variable called $value is 22 but becomes NULL even though there are no references and no code in scope modifies $value (trace #4 -> #3). This suggests a bug in your PHP installation.

      I see a similar PHP bug report involving modifications to one variable that causes a different variable to become NULL: https://bugs.php.net/bug.php?id=77058
      Which is fixed in 7.2.13. This is possibly related to the illogical behavior that we are seeing.

      For VaultWiki's end, in the next build, this will no longer throw this error; we will convert NULL to 0 on an integer cast. However, your 22 should not be a NULL value in the first place. If you do not correct that, it will be harder to catch starting with the next build.
      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 10:49 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.