• 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
    • Error on Special Page Double Redirects

    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: Error on Special Page Double Redirects

    • Issue Tools
      • View Changes
    1. issueid=2104 November 24, 2010 10:11 AM
      dvsDave dvsDave is offline
      Regular Member
      Error on Special Page Double Redirects

      when I go to view this special page, I get the following error:

      Code:
      Warning: require_once([path]/vault/plugins/ajax.php) [function.require-once]: failed to open stream: No such file or directory in [path]/vault/factory/special/doubleredirects.php on line 109
      I am running the latest 3.0.6 build 02 (FYI, 3.0.6 is not an option on the version list)
    Issue Details
    Issue Number 2104
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Special Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.6
    Fixed Version 3.0.7
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. November 24, 2010 12:41 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/factory/special/doubleredirects.php, find:
      Code:
      		require_once(DIR . '/vault/plugins/ajax.php');
      		$land = new vB_WikiCodeParser($vbulletin, special_tag_list());
      Replace with:
      Code:
      		require_once(DIR . '/vault/class/segregate.php');
      		require_once(DIR . '/vault/functions/ajax.php');
      Find:
      Code:
      		$page['firstline'] = special_preview_text('intro', $land->parse($page['pagetext'], $foruminfo['forumid']), 0, $page['wordcount']);
      Replace with:
      Code:
      		// don't make a preview longer than 1000
      		$post['pagetext'] = substr($post['pagetext'], 0, 1000);
      		$segregator = new vB_WikiSegregator($vbulletin);
      
      		// only parse the first section
      		if (preg_match($segregator->build_regex(), $post['pagetext'], $match))
      		{
      			$segregator->set_pagetext($threadinfo, $post);
      			$segregator->find_sections($post['postid']);
      
      			if (trim($segregator->sections[0]['text']) != '')
      			{
      				$post['pagetext'] = $segregator[0]['text'];
      			}
      			else if (!empty($segregator->sections[1]['pos']))
      			{
      				$post['pagetext'] = $segregator->get_section($post['postid'], 1, true);
      			}
      		}
      
      		$land = new vB_WikiCodeParser($vbulletin, special_tag_list());
      		$post['message'] = $land->parse($post['pagetext'], $foruminfo['forumid']);
      		$post['message'] = trim($land->strip_front_back_whitespace($post['message'], 10, true, false));
      
      		$page['firstline'] = special_preview_text('intro', $post['message'], 0, $page['wordcount']);
      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 12:34 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 © 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.