• 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
    • Fatal error when attempting to edit a book

    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: Fatal error when attempting to edit a book

    • Issue Tools
      • View Changes
    1. issueid=3043 April 22, 2013 5:20 PM
      Code Monkey Code Monkey is offline
      New Member
      Fatal error when attempting to edit a book

      Code:
      Fatal error: Class 'vw_UI_Edit_Book_Controller' not found in /home/mysite/public_html/vault/core/model/vw.php on line 162
    Issue Details
    Issue Number 3043
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Alpha 6
    Fixed Version 4.0.0 Alpha 7
    Milestone VaultWiki 4 Alpha X
    Software DependencyvBulletin 4.x w/ ckEditor
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 22, 2013 6:24 PM
      pegasus pegasus is offline
      VaultWiki Team
      Is this when clicking the Edit tab, or does the Edit tab work but this happens after clicking Save?

      I can't get it to happen here at all so I'm wondering what steps I need to perform.

      EDIT: Nevermind. I had tried to edit a page that had Book in the title but wasn't actually a book. With the more verbose error message in Alpha 7 for missing classes I see:
      Code:
      ...
      #3 : vw_Hard_Core::fetch_object() called in /home/vw/dev/depot/vault/core/model/vw.php on line 284
      #4 : vw_Hard_Core::controller() called in /home/vw/dev/depot/vault/core/controller/ui/page/vw.php on line 210
      #5 : vw_UI_Page_Controller->edit() called in /home/vw/dev/depot/vault/core/controller/ui/page/vw.php on line 48
      #6 : vw_UI_Page_Controller->execute() called in /home/vw/dev/depot/vault/core/controller/ui/stack/vw.php on line 124
      #7 : vw_UI_Stack_Controller->execute() called in /home/vw/dev/depot/wiki_index.php on line 87
      #8 : require(/home/vw/dev/depot/wiki_index.php) called in [path]/wiki_index.php on line 25
      Reply Reply  
    2. April 22, 2013 7:02 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. In vault/core/controller/ui/page/vw.php, find:
      Code:
      		vw_Hard_Core::controller('UI/Edit/' . $primary['accesskey'])->save($this);
      Replace with:
      Code:
      		$class = $classname = 'UI/Edit/' . $primary['accesskey'];
      		vw_Hard_Core::locate_class('Controller', $classname, $file);
      
      		if (!vw_Hard_Core::file_exists($file))
      		{
      			$class = 'UI/Edit/Page';
      		}
      
      		vw_Hard_Core::controller($class)->save($this);
      Find:
      Code:
      		vw_Hard_Core::controller('UI/Edit/' . $primary['accesskey'])->edit($this);
      Replace with:
      Code:
      		$class = $classname = 'UI/Edit/' . $primary['accesskey'];
      		vw_Hard_Core::locate_class('Controller', $classname, $file);
      
      		if (!vw_Hard_Core::file_exists($file))
      		{
      			$class = 'UI/Edit/Page';
      		}
      
      		vw_Hard_Core::controller($class)->edit($this);
      Reply Reply  
    3. April 23, 2013 1:12 AM
      Code Monkey Code Monkey is offline
      New Member
      Sorry, it was when clicking the edit tab.
      Reply Reply  
    4. April 23, 2013 1:13 AM
      Code Monkey Code Monkey is offline
      New Member
      Thanks I'll edit those files
      Reply Reply  
    5. April 23, 2013 1:21 AM
      Code Monkey Code Monkey is offline
      New Member
      Still getting it.

      Code:
      Fatal error: Class 'vw_UI_Edit_Book_Controller' not found in /home/joystickrequired/public_html/vault/core/model/vw.php on line 162
      Reply Reply  
    6. April 23, 2013 11:58 AM
      pegasus pegasus is offline
      VaultWiki Team
      Sorry, the original "find" code needed to be modified too. I've updated the above with "replace" code instead of "add before"
      Reply Reply  
    7. April 24, 2013 2:03 AM
      Code Monkey Code Monkey is offline
      New Member
      That seems to have done it. 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:54 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.