• 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
    • Fatal error on viewing user contributions

    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 on viewing user contributions

    • Issue Tools
      • View Changes
    1. issueid=2150 December 9, 2010 7:09 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Fatal error on viewing user contributions

      When clicking on a revision from here: showwiki.php?title=Special:Contributions&user=49908

      I first get this:
      You are trying to view a revision that does nto belong to this page, or this page has no edits yet.
      Folloed by:
      Code:
      Fatal error: Call to undefined method stdClass::strip_front_back_whitespace() in /forum/vault/functions/postbit.php on line 327
    Issue Details
    Issue Number 2150
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category History / Revisions
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 3.0.7
    Fixed Version 3.0.8
    Milestone VaultWiki 3.0.8
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 1
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. December 9, 2010 10:56 AM
      pegasus pegasus is offline
      VaultWiki Team
      Not getting the fatal error. Can you please specify which links to follow to reproduce?
      Reply Reply  
    2. December 9, 2010 12:10 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      check your PM. It seems to be related to the history tab of an article not working.
      Reply Reply  
    3. December 9, 2010 1:35 PM
      pegasus pegasus is offline
      VaultWiki Team
      I think this occurs when the article has
      Code:
      [TOC]FORCE[/TOC]
      . It tries to force the TOC onto the History tab, but there are no headlines loaded into memory on that tab.

      In vault/factory/postbit.php, find:
      Code:
      	function table_of_contents(&$headline_list, &$toc_title)
      	{
      Add after:
      Code:
      			if ($_REQUEST['do'] == 'history' AND $_REQUEST['action'] != 'revision')
      			{
      				return;
      			}
      Reply Reply  
    4. December 12, 2010 11:42 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      That does get rid of the fatal error, but not of the 'You are trying to view a revision that does not belong to this page, or this page has no edits yet.' message.
      Reply Reply  
    5. December 12, 2010 5:09 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      After the edits provided here:
      http://www.vaultwiki.org/issues/2119/

      I now get this fatal error again:
      Code:
      Fatal error: Call to undefined method stdClass::strip_front_back_whitespace() in /public_html/forum/vault/functions/postbit.php on line 327
      Reply Reply  
    6. December 13, 2010 12:05 AM
      pegasus pegasus is offline
      VaultWiki Team
      Make sure you applied the changes to both http and https. I am no longer getting any errors for the History tab of articles with forced-TOCs.
      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:50 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.