• 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 3.x Series
    • Bug
    • White screen php error when adding book with book tab.

    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: White screen php error when adding book with book tab.

    • Issue Tools
      • View Changes
    1. issueid=733 July 28, 2009 9:46 PM
      tommythejoat tommythejoat is offline
      Regular Member
      White screen php error when adding book with book tab.
      Create a book from the book tab fails with php error

      The book edit window opened fine, but when I tried to save the book the following error occurred.

      The browser address line shows:
      HTML Code:
      http://mb.nawcc.org/showwiki.php?title=Book:Encyclopedia+Writers+Guide&do=edit
      The php error is:
      Code:
      [28-Jul-2009 19:39:32] PHP Fatal error:  Call to a member function parse() on a non-object in /var/www/html/vault/special_plugins_bbcode.php on line 825
    Issue Details
    Issue Number 733
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Books / Chapters
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 2.5.0
    Fixed Version 2.5.0
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 28, 2009 10:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      I suspect that this was present before and would occur if you create a Book normally. This error is occurring because the plain-text parser (used for things like RSS feeds and forum subscription notifications) is being accessed when you save the new article.

      In vault/special_plugins_bbcode.php, find:
      Code:
      		$parsedtext = strip_tags($bbcodeplain->parse($text, $forumid));
      Replace with:
      Code:
      		if ($foruminfo['vault_type'] > 0)
      		{
      			$parsedtext = strip_tags($wikicodeplain->parse($text, $forumid));
      		}
      		else
      		{
      			$parsedtext = strip_tags($bbcodeplain->parse($text, $forumid));
      		}
      Reply Reply  
    2. July 28, 2009 10:10 PM
      pegasus pegasus is offline
      VaultWiki Team
      If it's due to a notification, your book should be successfully created, but you will still have to add the chapter.
      Reply Reply  
    3. July 28, 2009 10:12 PM
      tommythejoat tommythejoat is offline
      Regular Member
      I will put in the patch, but this is occurring on all article creation, not just the book tab. It occurs in the book namespace and in the default namespace.

      I had not tried to create an article since the upgrade this morning at 2:00 am.
      Reply Reply  
    4. July 28, 2009 10:20 PM
      tommythejoat tommythejoat is offline
      Regular Member
      The patch seems to have fixed the problem. I will continue testing other contexts.
      Reply Reply  
    5. July 29, 2009 12:47 AM
      tommythejoat tommythejoat is offline
      Regular Member
      The book was created in 5 copies, all identical in the book namespace listing. I deleted 3 of them.

      I decided to look at the vault_list table to see what might be going on.

      Every article appears 5 times with identical repeated records.

      Rebuilding the namespaces seems to have no effect.

      The namespace manager is also behaving strangely. i.e. If I click on the button to update namespace functions I get a message "The Default namespace function has not been set has not been assigned to a namespace."

      Is there documentation on how the new functions are supposed to work? I don't see handles for special namespaces other than Default, Category and Image. Shouldn't there be special handling for Book and Template also?
      Reply Reply  
    6. July 29, 2009 1:49 AM
      pegasus pegasus is offline
      VaultWiki Team
      These issues were reported several hours ago. Download the product again and replace your files. Then rebuild your namespaces.

      What was occurring before was that every time you rebuild the namespace, it would just add more records to whatever was there. Now it should clear the namespace record first. This should also clear any false positives you had in the URL Manager.
      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:18 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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.