• 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
    • "Add to Book"->Reassign Chapter = Crash

    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: "Add to Book"->Reassign Chapter = Crash

    • Issue Tools
      • View Changes
    1. issueid=3706 April 21, 2014 1:53 PM
      Ptah Ptah is offline
      Junior Member
      "Add to Book"->Reassign Chapter = Crash
      Trying to move a Chapter from one Book to another results in a hard crash

      Go to a Page that is a Chapter of a Book.
      Options->Add To Book
      Click the "-" on the present book.
      Click the "+" on another book.
      Click update.
      Get this fatal error:
      Code:
      Fatal error: Call to undefined method vw_DB_MySQL_Model_vB3::var() in /home/intpcomp/public_html/forums/vault/core/controller/dm/item/chapter/vw.php on line 224
      Note: interestingly, if you first update after clicking "-", then go back and "+" another book, it works fine. The error seems to be when doing the re-assignment all within the same "Update" round-trip.

      Edit: if it makes any difference, in my case the target book is a child-book of the source book.
    Issue Details
    Issue Number 3706
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Books / Chapters
    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 DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 21, 2014 4:49 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/controller/dm/item/chapter/vw.php, find:
      Code:
      vw_DB::get()->query()->var('new_chapter_order');
      Replace with:
      Code:
      vw_DB::get()->query()->varname('new_chapter_order');
      Reply Reply  
    2. April 21, 2014 5:23 PM
      Ptah Ptah is offline
      Junior Member
      Confirmed: this resolves the crash, and it seems to behave as expected. Thanks.
      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:42 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.