• 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
    • Cannot edit some pages

    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: Cannot edit some pages

    • Issue Tools
      • View Changes
    1. issueid=3271 August 1, 2013 1:19 PM
      rizwank rizwank is offline
      New Member
      Cannot edit some pages

      Error :
      Code:
      Fatal error: Call to undefined method XenForo_ViewPublic_Helper_Editor::getEditorSmilies() in /var/www/html/forum/library/vw/XenForo/ViewPublic/Helper/Editor.php on line 163
    Issue Details
    Issue Number 3271
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Beta 4
    Fixed Version 4.0.0 Beta 4
    Milestone VaultWiki 4 Beta X
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 1, 2013 2:31 PM
      pegasus pegasus is offline
      VaultWiki Team
      You upgraded to XF 1.2.0 stable?
      Reply Reply  
    2. August 1, 2013 3:02 PM
      rizwank rizwank is offline
      New Member
      Yes.
      Reply Reply  
    3. August 1, 2013 3:23 PM
      pegasus pegasus is offline
      VaultWiki Team
      In library/XenForo/Application.php, find:
      Code:
      public static $version = '1.2.0';
      Try replacing with:
      Code:
      public static $version = '1.2.0 RC 4';
      If that works then there is a problem where VaultWiki might think a Beta version is higher than its final release.
      Reply Reply  
    4. August 1, 2013 7:23 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/model/version/vw.php, find:
      Code:
      public function compare($higher, $lower)
      {
      ...
      }
      Replace that entire function with:
      Code:
      	public function compare($higher, $lower)
      	{
      		foreach (array(
      			'high' => $higher,
      			'low' => $lower
      		) AS $key => $ver)
      		{
      			$ver = strtolower($ver);
      			preg_match('/^(\w+\s+)?(\d+)\.(\d+)\.(\d+)(\s+(a|alpha|b|beta|g|gamma|rc|release candidate|gold|stable|final|pl|patch level|lite)(\s*(\d+)(\s+(pl|patch level)(\s*(\d+)))?)?)?$/siU', $ver, $regs);
      
      			$value = $regs[2] * 100000;
      			$value += $regs[3] * 10000;
      			$value += $regs[4] * 1000;
      
      			$co = 0;
      
      			if (!empty($regs[6]))
      			{
      				switch ($regs[6])
      				{
      					case 'a':
      					case 'alpha':
      						$co = -750;
      						break;
      
      					case 'b':
      					case 'beta':
      						$co = -500;
      						break;
      
      					case 'g':
      					case 'gamma':
      						$co = -250;
      						break;
      
      					case 'rc':
      					case 'release candidate':
      						$co = -100;
      						break;
      
      					case 'patch level':
      						$co = 1;
      						break;
      
      					case 'gold':
      					case 'stable':
      					case 'final':
      					default:
      						$co = 75;
      						break;
      				}
      			}
      			else
      			{
      				$co = 75;
      			}
      
      			$value += $co;
      
      			if (!empty($regs[8]))
      			{
      				$value += $regs[8];
      			}
      
      			if (!empty($regs[10]))
      			{
      				$value += 1 + $regs[12];
      			}
      
      			${$key} = $value;
      		}
      
      		if ($high > $low)
      		{
      			return 1;
      		}
      		else if ($high < $low)
      		{
      			return -1;
      		}
      
      		return 0;
      	}
      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 11:16 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.