• 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: Class 'vB_Template' not found

    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: Class 'vB_Template' not found

    • Issue Tools
      • View Changes
    1. issueid=2147 December 9, 2010 3:37 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Fatal error: Class 'vB_Template' not found

      When I try to add a different language version of an article, by pasting it in 'apply' tab > 'German', I get this error:
      Code:
      Fatal error: Class 'vB_Template' not found in /forum/vault/tab/apply.php on line 715
    Issue Details
    Issue Number 2147
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Translating Pages
    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 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. December 9, 2010 10:44 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/tab/apply.php, find:
      Code:
      		$templater = vB_Template::create('newpost_errormessage');
      			$templater->register('errormessage', $errormessage);
      		$errorlist .= $templater->render();
      Replace with:
      Code:
      		if (VAULT_40X_COMPAT)
      		{
      			$templater = vB_Template::create('newpost_errormessage');
      				$templater->register('errormessage', $errormessage);
      			$errorlist .= $templater->render();
      		}
      		else
      		{
      			eval('$errorlist .= "' . fetch_template('newpost_errormessage') . '";');
      		}
      However, the fact that this was the problem suggests that VaultWiki is finding issue with your URL. Likely, you are entering the German URL without the target already being set as German. It's either throwing "target is not written in German" or "there is already an English translation (this one)".
      Reply Reply  
    2. December 12, 2010 12:13 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      The above code change does not resolve the error.
      Can this be related to the use of https ?
      Reply Reply  
    3. December 12, 2010 1:05 PM
      pegasus pegasus is offline
      VaultWiki Team
      Unless your forum is reporting itself as vBulletin 4.x when it's not, that should fix the error message from your original post (that is the code at the specified line number). Are you getting a new error?
      Reply Reply  
    4. December 12, 2010 3:58 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Sorry. My bad. I forgot to upload the corrected version to http as well.

      I am now getting:
      The following URL can't be used as a translation because it's not associated with the correct language:
      What do I do to resolve that?
      Reply Reply  
    5. December 12, 2010 4:32 PM
      pegasus pegasus is offline
      VaultWiki Team
      Take this example.

      I have English article "A". I want to Apply German translation "B" to article A. However, even though I typed "B" in German, I might have accidentally let it save so that the wiki thinks it's English. In the case importing from NuWiki, this probably happened automatically. VaultWiki won't let you claim that "B" is German when it thinks it's English (allowing this freely could potentially corrupt page output). To set VaultWiki straight, you first need to visit "B" and Apply it as German.

      For an improved workflow, it's probably best to set all of your German translations from each German article, rather than from the English one. This way you can change its language and set the English translation at the same time.
      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:12 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.