• 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
    • XF\CssRenderException: Error rendering template public:vw_search.less: ParseError: Unexpected input in public:vw_search.less on line 1153, column 22 (on or near line 1153) src/XF/CssRenderException.php:89

    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: XF\CssRenderException: Error rendering template public:vw_search.less: ParseError: Unexpected input in public:vw_search.less on line 1153, column 22 (on or near line 1153) src/XF/CssRenderException.php:89

    • Issue Tools
      • View Changes
    1. issueid=6496 1 Day Ago 9:01 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      XF\CssRenderException: Error rendering template public:vw_search.less: ParseError: Unexpected input in public:vw_search.less on line 1153, column 22 (on or near line 1153) src/XF/CssRenderException.php:89

      XF\CssRenderException: Error rendering template public:vw_search.less: ParseError: Unexpected input in public:vw_search.less on line 1153, column 22 (on or near line 1153) src/XF/CssRenderException.php:89

      Generated by: Unknown account Sep 26, 2025 at 10:11 PM

      Stack trace

      1150 |
      1151 | /* ###### SEARCH ###### */
      1152 |
      *1153*| @_vwsearch-height: ( * 1.4) + (10px + 10px);
      1154 |
      1155 | .vw-search-form {
      1156 | }
      ------------

      #0 src/XF/CssRenderer.php(435): XF\CssRenderException::createFromLessException(Object(Les s_Exception_Chunk), 'public:vw_searc...', '// Note that th...')
      #1 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:vw_searc...', '// Note that th...')
      #2 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:vw_searc...', NULL)
      #3 src/XF/CssRenderer.php(135): XF\CssRenderer->renderTemplates(Array, Array, Array)
      #4 src/XF/CssWriter.php(60): XF\CssRenderer->render(Array)
      #5 css.php(32): XF\CssWriter->run(Array, 13, 2, '3d680667a2dc84d...')
      #6 {main}

      -------------

      Previous Less_Exception_Chunk: ParseError: Unexpected input in anonymous-file-0.less on line 1153, column 22
      1151| /* ###### SEARCH ###### */
      1152|
      1153| @_vwsearch-height: ( * 1.4) + (10px + 10px);
      1154|
      1155| .vw-search-form {
      1156| } - src/vendor/oyejorge/less.php/lib/Less/Parser.php:625
      #0 src/vendor/oyejorge/less.php/lib/Less/Parser.php(572): Less_Parser->GetRules(NULL)
      #1 src/vendor/oyejorge/less.php/lib/Less/Parser.php(413): Less_Parser->_parse()
      #2 src/XF/CssRenderer.php(431): Less_Parser->parse('// Note that th...')
      #3 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:vw_searc...', '// Note that th...')
      #4 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:vw_searc...', NULL)
      #5 src/XF/CssRenderer.php(135): XF\CssRenderer->renderTemplates(Array, Array, Array)
      #6 src/XF/CssWriter.php(60): XF\CssRenderer->render(Array)
      #7 css.php(32): XF\CssWriter->run(Array, 13, 2, '3d680667a2dc84d...')
      #8 {main}


      Request state

      array(4) {
      ["url"] => string(701) "/css.php?css=public%3Abb_code.less%2Cpublic%3Abzmf_final.l ess%2Cpublic%3Anotices.less%2Cpublic%3Ashare_controls.les s%2Cpublic%3Asiropu_ads_manager_ad.less%2Cpublic%3Avw_att ach.less%2Cpublic%3Avw_base.less%2Cpublic%3Avw_bbcode.les s%2Cpublic%3Avw_block.less%2Cpublic%3Avw_content.less%2Cp ublic%3Avw_flag.less%2Cpublic%3Avw_icon.less%2Cpublic%3Av w_list.less%2Cpublic%3Avw_popup.css%2Cpublic%3Avw_search. less%2Cpublic%3Avw_section.less%2Cpublic%3Avw_sidebar.les s%2Cpublic%3Avw_tab.less%2Cpublic%3Avw_title.less%2Cpubli c%3Axb.less%2Cpublic%3Axb_search.less%2Cpublic%3Axb_sideb ar_login.less%2Cpublic%3Aextra.less%2Cpublic%3Avw_additio nal.less&s=13&l=2&d=1758803241&k=3d680667a2dc84d72954bea0 504c5c77437ede92"
      ["referrer"] => string(61) "https://forum.com/wiki/Cold_Water_xx"
      ["_GET"] => array(5) {
      ["css"] => string(529) "public:bb_code.less,public:bzmf_final.less,public:notice s.less,public:share_controls.less,public:siropu_ads_manag er_ad.less,public:vw_attach.less,public:vw_base.less,publ ic:vw_bbcode.less,public:vw_block.less,public:vw_content. less,public:vw_flag.less,public:vw_icon.less,public:vw_li st.less,public:vw_popup.css,public:vw_search.less,public: vw_section.less,public:vw_sidebar.less,public:vw_tab.less ,public:vw_title.less,public:xb.less,public:xb_search.les s,public:xb_sidebar_login.less,public:extra.less,public:v w_additional.less"
      ["s"] => string(2) "13"
      ["l"] => string(1) "2"
      ["d"] => string(10) "1758803241"
      ["k"] => string(40) "3d680667a2dc84d72954bea0504c5c77437ede92"
      }
      ["_POST"] => array(0) {
      }
      }

      I think the above error was while VW is inactive. Which is weird.
    Issue Details
    Issue Number 6496
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.9
    Fixed Version 4.1.10
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. 5 Hours Ago 12:22 PM
      pegasus pegasus is offline
      VaultWiki Team
      This is a drawback of attempting to run an add-on's code while the add-on is disabled. Here, the user is requesting VaultWiki's CSS even though VaultWiki is disabled. For some reason, XenForo allows this. Thankfully, it seems we can work around the issue by using a default value if the variable the template needs is null.

      In template vw_search.less, find:
      Code:
      @xf-vw_input_font_pixels * @xf-lineHeightDefault
      Replace with:
      Code:
      xf-default(@xf-vw_input_font_pixels, 15) * @xf-lineHeightDefault
      However, you will still receive many error messages about undefined functions, because the template expects that VaultWiki has registered those template functions, which it cannot do while it is disabled. It seems the best course of action, generally, is to force the issue. XenForo should not render CSS for disabled add-ons, due to the potential for fatal errors of non-existing variables or undefined functions. So in the next release, we've wrapped all our vw_xxxx.less templates, including vw_additional.less in:
      Code:
      <xf:if is="{{ is_addon_active('vw/vw') }}">
      ...
      </xf:if>
      This should generally be unnecessary in non-CSS templates, because I don't think it's possible for the end-user to request them manually. The only situation would be if the admin has created custom xf:include, etc in their templates, in which case the admin should do the is_addon_active check.
      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:35 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 © 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.