• 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 step 2: Undefined index: book_childlist

    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 step 2: Undefined index: book_childlist

    • Issue Tools
      • View Changes
    1. issueid=3721 April 28, 2014 4:40 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Upgrade step 2: Undefined index: book_childlist

      ON upgrade step 2:
      Code:
      ErrorException: Undefined index: book_childlist - vault/core/controller/dm/item/chapter/vw.php:184
      
          XenForo_Application::handlePhpError() in /vault/core/controller/dm/item/chapter/vw.php at line 184
          vw_DM_Item_Chapter_Controller->post_save_each() in /vault/core/controller/dm/item/chapter/xf.php at line 54
          vw_DM_Item_Chapter_Controller_XF->_postSave() in XenForo/DataWriter.php at line 1409
          XenForo_DataWriter->save() in /vault/core/controller/dm/xf.php at line 378
          vw_DM_Controller_XF->save() in /vault/core/controller/dm/page/vw.php at line 1425
          vw_DM_Page_Controller->save_nodes() in /vault/core/controller/dm/page/vw.php at line 1205
          vw_DM_Page_Controller->post_save_each() in /vault/core/controller/dm/page/xf.php at line 127
          vw_DM_Page_Controller_XF->_postSave() in XenForo/DataWriter.php at line 1409
          XenForo_DataWriter->save() in /vault/core/controller/dm/xf.php at line 378
          vw_DM_Controller_XF->save() in /vault/core/controller/install/upgradepath/steps/4/0/0/gamma/5/base/vw.php at line 121
          {closure}() in /vault/core/controller/install/upgradepath/vw.php at line 57
          vw_Install_UpgradePath_Controller->call() in /vault/core/controller/cp/install/vw.php at line 299
          vw_CP_Install_Controller->exec_step() in /vault/core/controller/cp/install/vw.php at line 264
          vw_CP_Install_Controller->upgrade_type() in /vault/core/controller/cp/install/vw.php at line 201
          vw_CP_Install_Controller->upgrade() in /vault/core/controller/cp/install/vw.php at line 71
          vw_CP_Install_Controller->execute() in vw/XenForo/ControllerAdmin/Wiki.php at line 107
          vw_XenForo_ControllerAdmin_Wiki->actionIndex() in vw/XenForo/ControllerAdmin/Wiki.php at line 136
          vw_XenForo_ControllerAdmin_Wiki->actionUpgrade() in XenForo/FrontController.php at line 347
          XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
          XenForo_FrontController->run() in …
      
      
      array(3) {
        ["url"] => string(73) "/admin.php?wiki/upgrade&step=2&nostyle=1"
        ["_GET"] => array(3) {
          ["wiki/upgrade"] => string(0) ""
          ["step"] => string(1) "2"
          ["nostyle"] => string(1) "1"
        }
        ["_POST"] => array(5) {
          ["wiki/upgrade"] => string(0) ""
          ["step"] => string(1) "2"
          ["nostyle"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
          ["do"] => string(1) "2"
        }
      }
    Issue Details
    Issue Number 3721
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Gamma 5
    Fixed Version 4.0.0 Gamma 6
    Milestone VaultWiki 4 Gamma X
    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. April 28, 2014 5:08 PM
      pegasus pegasus is offline
      VaultWiki Team
      This error suggests that your 'vw_book' table doesn't have a 'book_childlist' column. Please double-check this.

      Although it could also mean that the book was already fetched by page rather than by book, and for some (bug) reason, the page was cached without the corresponding rows from 'vw_book'.

      EDIT: I see the problem. There is a design flaw: the fetcher will return a 'page' if we ask for a 'book' (expected), but will still return the page even if it is not a book.

      In vault/core/controller/dm/item/chapter/vw.php, find:
      Code:
      			if ($prevbook)
      Replace with:
      Code:
      			if ($prevbook AND !empty($prevbook['book_childlist']))
      I am trying to resolve that design flaw now but doing so causes other problems.
      Reply Reply  
    2. April 28, 2014 5:40 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed this design flaw in the next release.

      The fetcher will now only return a result from cache if the cache entry matches the filter being requested.
      e.g. When searching for page with pageid = 9 and searching for book with pageid = 9, the latter will no longer product a result if pageid = 9 is not a book.
      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 7:19 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.