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

    • Issue Tools
      • View Changes
    1. issueid=4423 November 8, 2015 12:20 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Class 'vB_Template' not found

      Step 20

      Importing edits to wiki pages
      Code:
      Fatal error: Class 'vB_Template' not found in /vault/core/model/parser/handle/vb3.php on line 108
      Fatal Error: Class 'vB_Template' not found
      vw_CP_Progress_View->handle_fatal_error()
    Issue Details
    Issue Number 4423
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.7
    Fixed Version 4.0.7
    Milestone (none)
    Software DependencyvBulletin 3.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. November 8, 2015 12:25 PM
      pegasus pegasus is offline
      VaultWiki Team
      I can see this being a problem. For now, the workaround will be to not display anything if a wiki page contains a QUOTE tag, since it's not needed during the import. I will have to research a better way so the QUOTE tags work in wiki pages in vBulletin 3.

      In vault/core/model/parser/handle/vb3.php, find:
      Code:
      $username = $open['option'];
      Before it, add:
      Code:
      return '';
      Reply Reply
    2. November 8, 2015 12:27 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      ok. Please let me know when this issue is truly fixed.
      Reply Reply
    3. November 8, 2015 6:03 PM
      pegasus pegasus is offline
      VaultWiki Team
      So instead of the edit above, I think this should do it. There's a whole block at the end of the function:
      Code:
      		$templater = vB_Template::create($this->parent->instance->get('printable') ? 'vw_content_quote_print' : 'vw_content_quote_view', true);
      			$templater->register('message', $message);
      			$templater->register('quote_url', $url);
      			$templater->register('username', $username);
      		return $templater->render();
      Replace it with:
      Code:
      		$templater = vw_Hard_Core::fetch_template($this->parent->instance->get('printable') ? 'vw_content_quote_print' : 'vw_content_quote_view');
      			$templater->set_comments(true);
      			$templater->register('message', $message);
      			$templater->register('quote_url', $url);
      			$templater->register('username', $username);
      		require($templater->get_controller());
      
      		return $templater->get_output();
      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 2:29 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.