• 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
    • Upgrade from 4.0.20 to 4.0.24

    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: Upgrade from 4.0.20 to 4.0.24

    • Issue Tools
      • View Changes
    1. issueid=5495 September 29, 2018 9:07 AM
      wolven wolven is offline
      New Member
      Upgrade from 4.0.20 to 4.0.24
      During upgrade fails in Step 30 updating data in table: vw_moderator

      Using php 7.2.

      Complete Error:

      Upgrading to 4.0.22
      Step 30

      Updating data in table: vw_moderator

      array_keys() expects parameter 1 to be array, null given

      #0: vw_CP_Progress_View->handle_php_error()
      #1: array_keys() in [path]/vault/install/lib/upgradepath/steps/4/0/22/base/vw.php at line 1016
      #2: vw_Install_UpgradePath_Steps_4022_base_Controller->{closure}() in [path]/vault/core/controller/progress/steps/vw.php at line 83
      #3: vw_Progress_Steps_Controller->call() in [path]/vault/core/controller/progress/steps/vw.php at line 53
      #4: vw_Progress_Steps_Controller->execute() in [path]/vault/install/lib/upgradepath/vw.php at line 69
      #5: vw_Install_UpgradePath_Controller->exec_script() in [path]/vault/core/controller/progress/vw.php at line 74
      #6: vw_Progress_Controller->execute() in [path]/vault/core/controller/cp/progress/vw.php at line 37
      #7: vw_CP_Progress_Controller->process() in [path]/vault/core/controller/cp/install/vw.php at line 436
      #8: vw_CP_Install_Controller->upgrade() in [path]/vault/core/controller/cp/install/vw.php at line 56
      #9: vw_CP_Install_Controller->execute() in [path]/library/vw/XenForo/ControllerAdmin/Wiki.php at line 125
      #10: vw_XenForo_ControllerAdmin_Wiki->actionIndex() in [path]/library/vw/XenForo/ControllerAdmin/Wiki.php at line 182
      #11: vw_XenForo_ControllerAdmin_Wiki->actionUpgrade() in [path]/library/XenForo/FrontController.php at line 369
      #12: XenForo_FrontController->dispatch() in [path]/library/XenForo/FrontController.php at line 152
      #13: XenForo_FrontController->run() in [path]/admin.php at line 13
    Issue Details
    Issue Number 5495
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.24
    Fixed Version 4.0.25
    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 database




    1. September 29, 2018 10:54 AM
      pegasus pegasus is offline
      VaultWiki Team
      This occurs when upgrading if you have changed the default wiki moderators so that none of them are super moderators (maybe they only moderate 1 wiki area or maybe you don't have any moderators), before you upgrade to 4.0.22 or higher. To account for this situation:

      In vault/install/lib/upgradepath/steps/4/0/22/base/vw.php, find:
      Code:
      			$supers = $moderators[0][0];
      			$superids = array_keys($supers);
      			$supercount = count($superids);
      Replace with:
      Code:
      			$superids = array();
      
      			if (!empty($moderators[0][0]))
      			{
      				$supers = $moderators[0][0];
      				$superids = array_keys($supers);
      				$supercount = count($superids);
      			}
      Reply Reply  
    2. September 29, 2018 11:31 AM
      wolven wolven is offline
      New Member
      Thanks Pegasus for instant reply.
      I had checked this before and saw there is no moderator in the vw_moderator table. I have no idea why.

      But anyway, it ran smoothly than. I have put an mod in place.
      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 2:00 PM.
    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.