• 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
    • array_key_exists(): The first argument should be either a string or an integer

    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: array_key_exists(): The first argument should be either a string or an integer

    • Issue Tools
      • View Changes
    1. issueid=6164 February 2, 2021 9:10 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      array_key_exists(): The first argument should be either a string or an integer

      ErrorException: array_key_exists(): The first argument should be either a string or an integer - library/XenForo/DataWriter.php:1041
      Generated By: Alfa, A moment ago
      Stack Trace

      #0 [internal function]: XenForo_Application::handlePhpError(2, 'array_key_exist...', '/home/nginx/dom...', 1041, Array)
      #1 /library/XenForo/DataWriter.php(1041): array_key_exists(false, Array)
      #2 /library/vw/_core/controller/dm/xf.php(367): XenForo_DataWriter->get(false)
      #3 /library/vw/_core/controller/dm/base/routable/vw.php(520): vw_DM_Controller_XF->save()
      #4 /library/vw/_core/controller/dm/page/vw.php(1887): vw_DM_Base_Routable_Controller->save_path(Array)
      #5 /library/vw/XenForo/DataWriter.php(572): vw_DM_Page_Controller->post_save_each()
      #6 /library/XenForo/DataWriter.php(1423): vw_XenForo_DataWriter->_postSave()
      #7 /library/vw/_core/controller/dm/xf.php(364): XenForo_DataWriter->save()
      #8 /library/vw/XenForo/TagHandler/base.php(63): vw_DM_Controller_XF->save()
      #9 /library/XenForo/Model/Tag.php(570): vw_XenForo_TagHandler_base->updateContentTagCache(Array, Array)
      #10 /library/XenForo/Deferred/TagRecache.php(50): XenForo_Model_Tag->rebuildTagCache('vwpage', 1504)
      #11 /library/XenForo/Model/Deferred.php(295): XenForo_Deferred_TagRecache->execute(Array, Array, 7.4741671085358, 'Rebuilding... T...')
      #12 /library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.4741671085358, 'Rebuilding... T...', false)
      #13 /library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, 'Rebuilding... T...', false)
      #14 /library/XenForo/ControllerAdmin/Tools.php(159): XenForo_Model_Deferred->run(true, NULL, 'Rebuilding... T...', false)
      #15 /library/XenForo/FrontController.php(369): XenForo_ControllerAdmin_Tools->actionRunDeferred()
      #16 /library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #17 /admin.php(13): XenForo_FrontController->run()
      #18 {main}

      Request State

      array(3) {
      ["url"] => string(52) "/admin.php?tools/run-deferred"
      ["_GET"] => array(1) {
      ["tools/run-deferred"] => string(0) ""
      }
      ["_POST"] => array(3) {
      ["redirect"] => string(57) "/admin.php?tools/rebuild&success=1"
      ["execute"] => string(1) "1"
      ["_xfToken"] => string(8) "********"
      }
      }
    Issue Details
    Issue Number 6164
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Admin Panel
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.1
    Fixed Version 4.1.1
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 2, 2021 2:09 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next build. From what I can tell, this bug makes 4.1.1 unusable on XenForo 1.x, in that it is impossible to save various kinds of wiki data. In library/vw/XenForo/DataWriter.php, find:
      Code:
      			$node = array(
      				'idfield' => $dmkey . 'id',
      				'table' => $dmkey
      			);
      AFTER it, add:
      Code:
      $this->controller->node = $node;
      Reply Reply  
    2. February 2, 2021 2:30 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      thanks.
      Reply Reply  
    3. February 4, 2021 9:04 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Weird. I still keep getting this error.
      Reply Reply  
    4. February 4, 2021 2:14 PM
      pegasus pegasus is offline
      VaultWiki Team
      Did you reset PHP's opcache after making the edit?
      Reply Reply  
    5. February 4, 2021 4:53 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Yes, I used fpmrestart through CLI.
      Reply Reply  
    6. February 4, 2021 4:57 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Actually it seems to work but this one remains:
      https://www.vaultwiki.org/issues/6165/
      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 3:26 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.