• 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
    • [4.1.0 RC1 Build 2] Three New Errors and a Question

    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: [4.1.0 RC1 Build 2] Three New Errors and a Question

    • Issue Tools
      • View Changes
    1. issueid=5958 February 17, 2020 7:08 AM
      gerryvz gerryvz is offline
      New Member
      [4.1.0 RC1 Build 2] Three New Errors and a Question
      Identifying three new errors that appeared after upgrading to 4.1.0 RC2

      Last night I uploaded the 4.1.0 RC1 Build 2 files, after disabling VW via the ACP on XenForo 2.1.7.

      I'm assuming as in the past, this is just a straightforward file update/substitution, so no formal "upgrade" process was required.

      Anyway, the following three errors happened within an hour of updating the files. The first two errors below, appeared in pairs. Approximately four pairs of them. The third error occurred twice, within a minute of one another.

      ERROR 1:

      ErrorException: Template error: Function vw_fa_code is unknown src/XF/Template/Templater.php:914

      Generated by: Unknown account Feb 16, 2020 at 9:01 PM

      Stack trace

      #0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Function vw_fa_...', '/var/www/html/5...', 914, Array)
      #1 src/XF/Template/Templater.php(914): trigger_error('Function vw_fa_...', 512)
      #2 internal_data/code_cache/templates/l1/s1/public/vw_attach.less.php(84): XF\Template\Templater->func('vw_fa_code', Array, true)
      #3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
      #4 src/XF/CssRenderer.php(323): XF\Template\Templater->renderTemplate('vw_attach.less', Array, false)
      #5 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:vw_attac...', NULL)
      #6 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
      #7 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
      #8 css.php(30): XF\CssWriter->run(Array, 1, 1, 'f386ac5470a82d4...')
      #9 {main}

      Request state

      array(4) {
      ["url"] => string(401) "/forums/css.php?css=public%3Amessage.less%2Cpublic%3Anotices.less %2Cpublic%3Ashare_controls.less%2Cpublic%3Asnog_flags.les s%2Cpublic%3AsvESE_autocomplete.less%2Cpublic%3Avw_attach .less%2Cpublic%3Avw_base.less%2Cpublic%3Avw_bbcode.less%2 Cpublic%3Avw_list.less%2Cpublic%3Avw_section.less%2Cpubli c%3Aextra.less%2Cpublic%3Avw_additional.less&s=1&l=1&d=15 66593715&k=f386ac5470a82d42f8ad6657309bbf5d816d7671"
      ["referrer"] => string(74) "https://www.500eboard.co/forums/index.php?threads/convertible-braces.7527/"
      ["_GET"] => array(5) {
      ["css"] => string(271) "public:message.less,public:notices.less,public:share_con trols.less,public:snog_flags.less,public:svESE_autocomple te.less,public:vw_attach.less,public:vw_base.less,public: vw_bbcode.less,public:vw_list.less,public:vw_section.less ,public:extra.less,public:vw_additional.less"
      ["s"] => string(1) "1"
      ["l"] => string(1) "1"
      ["d"] => string(10) "1566593715"
      ["k"] => string(40) "f386ac5470a82d42f8ad6657309bbf5d816d7671"
      }
      ["_POST"] => array(0) {
      }
      }



      ERROR 2:

      ErrorException: Template error: Function vw_fa_weight is unknown
      src/XF/Template/Templater.php:914

      Generated by: Unknown account

      Feb 16, 2020 at 9:01 PM

      Stack trace

      #0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Function vw_fa_...', '/var/www/html/5...', 914, Array)
      #1 src/XF/Template/Templater.php(914): trigger_error('Function vw_fa_...', 512)
      #2 internal_data/code_cache/templates/l1/s1/public/vw_attach.less.php(85): XF\Template\Templater->func('vw_fa_weight', Array, true)
      #3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
      #4 src/XF/CssRenderer.php(323): XF\Template\Templater->renderTemplate('vw_attach.less', Array, false)
      #5 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:vw_attac...', NULL)
      #6 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
      #7 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
      #8 css.php(30): XF\CssWriter->run(Array, 1, 1, 'f386ac5470a82d4...')
      #9 {main}

      Request state

      array(4) {
      ["url"] => string(401) "/forums/css.php?css=public%3Amessage.less%2Cpublic%3Anotices.less %2Cpublic%3Ashare_controls.less%2Cpublic%3Asnog_flags.les s%2Cpublic%3AsvESE_autocomplete.less%2Cpublic%3Avw_attach .less%2Cpublic%3Avw_base.less%2Cpublic%3Avw_bbcode.less%2 Cpublic%3Avw_list.less%2Cpublic%3Avw_section.less%2Cpubli c%3Aextra.less%2Cpublic%3Avw_additional.less&s=1&l=1&d=15 66593715&k=f386ac5470a82d42f8ad6657309bbf5d816d7671"
      ["referrer"] => string(74) "https://www.500eboard.co/forums/index.php?threads/convertible-braces.7527/"
      ["_GET"] => array(5) {
      ["css"] => string(271) "public:message.less,public:notices.less,public:share_con trols.less,public:snog_flags.less,public:svESE_autocomple te.less,public:vw_attach.less,public:vw_base.less,public: vw_bbcode.less,public:vw_list.less,public:vw_section.less ,public:extra.less,public:vw_additional.less"
      ["s"] => string(1) "1"
      ["l"] => string(1) "1"
      ["d"] => string(10) "1566593715"
      ["k"] => string(40) "f386ac5470a82d42f8ad6657309bbf5d816d7671"
      }
      ["_POST"] => array(0) {
      }
      }



      ERROR 3:

      ErrorException: Template error: Function vw_integrate is unknown
      src/XF/Template/Templater.php:914

      Generated by: BCLOUDE

      Feb 16, 2020 at 9:03 PM

      Stack trace

      #0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Function vw_int...', '/var/www/html/5...', 914, Array)
      #1 src/XF/Template/Templater.php(914): trigger_error('Function vw_int...', 512)
      #2 internal_data/code_cache/templates/l1/s1/public/thread_view.php(214): XF\Template\Templater->func('vw_integrate', Array, true)
      #3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
      #4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
      #5 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
      #6 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
      #7 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #9 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
      #10 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #11 src/XF.php(391): XF\App->run()
      #12 index.php(20): XF::runApp('XF\\Pub\\App')
      #13 {main}

      Request state

      array(4) {
      ["url"] => string(92) "/forums/threads/fs-1994-e500-smoke-silver-parchment-111kmi-30k-pompano-beach-fl.10823/page-2"
      ["referrer"] => string(110) "https://www.500eboard.co/forums/threads/fs-1994-e500-smoke-silver-parchment-111kmi-30k-pompano-beach-fl.10823/"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(0) {
      }
      }
    Issue Details
    Issue Number 5958
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Forum Bug
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.0 RC 1
    Fixed Version (none)
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 18, 2020 6:52 AM
      SeToY SeToY is offline
      Junior Member
      Can confirm
      Reply Reply  
    2. February 19, 2020 11:03 AM
      pegasus pegasus is offline
      VaultWiki Team
      The first two errors are a design flaw in XenForo:

      When an add-on is disabled, guest cache is not reset. So if there is a guest cache that has a CSS include that lists a .less template from that add-on, then the following occurs, which is an additional design flaw in XenForo:

      When processing a CSS request, XenForo will attempt to render templates that belong to add-ons that are currently disabled, if those templates were requested.

      Since the add-on is disabled, its template functions are not available, hence the error messages. There is nothing an add-on can do about this, since it is already disabled. The problem lies with XenForo attempting to render disabled things.

      While XenForo provides a template helper function isAddonActive, it is redundant for the same add-on you would test to use this function inside its templates. XenForo should be smart enough not to render templates from an add-on that is disabled. XenForo already knows not to render template modifications while their add-on is disabled, although a race condition still allows that in some cases (discussed earlier here: https://www.vaultwiki.org/issues/5881/)
      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 6:40 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.