• 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
    • Vault Wiki Error Message

    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: Vault Wiki Error Message

    • Issue Tools
      • View Changes
    1. issueid=5118 June 20, 2017 8:06 PM
      Thanatos Thanatos is offline
      New Member
      Vault Wiki Error Message
      Testing VW before considering a purchase

      Xenforo 1.5.x
      Vault Wiki Lite 4.0.17 Patch 1 (from the Xenforo site)

      I am the owner/admin of the site and so have full access. I noticed I had an alert and clicked on the alert and got this message:
      Code:
      An exception occurred: Class 'vw_XenForo_Template_Hook_Account' not found in /homepages/39/d343934524/htdocs/community/library/vw/XenForo/CodeEventListener.php on line 353
      
      vw_XenForo_CodeEventListener::template_hook() in XenForo/CodeEvent.php at line 58
      XenForo_CodeEvent::fire() in XenForo/Template/Abstract.php at line 285
      XenForo_Template_Abstract->callTemplateHook() in XenForo/Template/Abstract.php(265) : eval()'d code at line 40
      eval() in XenForo/Template/Abstract.php at line 265
      XenForo_Template_Abstract->_renderInternal() in XenForo/Template/Abstract.php at line 191
      XenForo_Template_Abstract->render() in XenForo/Template/Public.php at line 110
      XenForo_Template_Public->render() in XenForo/ViewRenderer/HtmlPublic.php at line 124
      XenForo_ViewRenderer_HtmlPublic->renderContainer() in XenForo/FrontController.php at line 639
      XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
      XenForo_FrontController->run() in /homepages/39/d343934524/htdocs/community/index.php at line 13
      
      
      
      mod list:
      
      Birthday Thread 1.9
      Calendar 6.0
      Change Date 1.7
      CTA Table BB Code 1.1.1
      DragonByte Tech: Shout (Lite) 7.2.0
      Inline Code 1.0.0
      Register Email 3.6
      s9e Media Pack 20170602
      VaultWiki 4.0.17
      VaultWiki Routes 0.0.0
      XenForo Media Gallery 1.1.12
      XenQuotation 1.0.0
      [h] Roll Dice in Threads RC 2
      [KL] Inline Spoiler 2.0.2
    Issue Details
    Issue Number 5118
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category General
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.17
    Fixed Version 4.0.19
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypeLite
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 21, 2017 10:24 AM
      pegasus pegasus is offline
      VaultWiki Team
      In library/vw/XenForo/CodeEventListener.php, find all:
      Code:
      return vw_XenForo_Template_Hook_Account
      Before all, add:
      Code:
      return $contents;
      Fully fixing the underlying issue requires a patch which will be released later this month, per our patch schedule.
      Reply Reply  
    2. June 21, 2017 10:42 AM
      Thanatos Thanatos is offline
      New Member
      Just so yo know, I used notepad++ to edit the 2 instances I found, made sure it looked like the code below it which had return $contents; as well (those 2 instances did not)

      Opened my site up in firefox, did a clear history of everything, logged into my site, clicked the alert, click the word 'alerts' in the pop up and:
      Code:
      An exception occurred: Class 'vw_XenForo_Template_Hook_Account' not found in /homepages/39/d343934524/htdocs/community/library/vw/XenForo/CodeEventListener.php on line 355
      
          vw_XenForo_CodeEventListener::template_hook() in XenForo/CodeEvent.php at line 58
          XenForo_CodeEvent::fire() in XenForo/Template/Abstract.php at line 285
          XenForo_Template_Abstract->callTemplateHook() in XenForo/Template/Abstract.php(265) : eval()'d code at line 40
          eval() in XenForo/Template/Abstract.php at line 265
          XenForo_Template_Abstract->_renderInternal() in XenForo/Template/Abstract.php at line 191
          XenForo_Template_Abstract->render() in XenForo/Template/Public.php at line 110
          XenForo_Template_Public->render() in XenForo/ViewRenderer/HtmlPublic.php at line 124
          XenForo_ViewRenderer_HtmlPublic->renderContainer() in XenForo/FrontController.php at line 639
          XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
          XenForo_FrontController->run() in /homepages/39/d343934524/htdocs/community/index.php at line 13
      Sorry...no love so far, I'm 0 for 2.
      Reply Reply  
    3. June 21, 2017 10:50 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please post the contents of that switch block. It should be impossible to reach line 355 if there is a return on line 354.
      Reply Reply  
    4. June 21, 2017 10:58 AM
      Thanatos Thanatos is offline
      New Member
      These are line 348 to 360:

      Code:
      		switch ($hookName)
      		{
      			case 'account_preferences_options':
      				return vw_XenForo_Template_Hook_Account::account_preferences_options($contents, $template);
      				return $contents;
      
      			case 'account_wrapper_sidebar_your_account':
      				return vw_XenForo_Template_Hook_Account::account_wrapper_sidebar_your_account($contents, $template);
      				return $contents;
      
      			case 'page_container_content_title_bar':
      				$contents .= '<!-- VW:INJECTION-POINT 1 -->';
      				return $contents;
      Reply Reply  
    5. June 22, 2017 8:56 AM
      pegasus pegasus is offline
      VaultWiki Team
      You added the code in the wrong location (after instead of before). Those lines above should look like this:
      Code:
      		switch ($hookName)
      		{
      			case 'account_preferences_options':
      				return $contents;
      				return vw_XenForo_Template_Hook_Account::account_preferences_options($contents, $template);
      
      			case 'account_wrapper_sidebar_your_account':
      				return $contents;
      				return vw_XenForo_Template_Hook_Account::account_wrapper_sidebar_your_account($contents, $template);
      
      			case 'page_container_content_title_bar':
      				$contents .= '&lt;!-- VW:INJECTION-POINT 1 --&gt;';
      				return $contents;
      Reply Reply  
    6. June 22, 2017 10:42 AM
      Thanatos Thanatos is offline
      New Member
      I See.

      thank you - apparently I am unable to read properly...and well I suck at doing code stuff, I just don't have an instinct for it.

      I made the corrections to the file and it resolved the issue.
      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 5:30 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.