XF 2.2 How t fix this? Error rendering template public:xb.less: variable....

drastic

Well-known member
Anyone know how to fix this?

Last thing I did to the site was install the thumbnail addon from @AddonsLab - so maybe they can take a look?


Code:
    XF\CssRenderException: Error rendering template public:xb.less: variable @widerwidth is undefined in file public:xb.less in public:xb.less (on or near line 5683) src/XF/CssRenderException.php:87

    Generated by: Unknown account Mar 2, 2021 at 12:04 AM

Stack trace

 5680 | {
 5681 |     .p-body-inner
 5682 |     {
*5683*|         max-width: @widerwidth;
 5684 |     }
 5685 |     .p-breadcrumbs--parent
 5686 |     {
------------

#0 src/XF/CssRenderer.php(416): XF\CssRenderException::createFromLessException(Object(Less_Exception_Compiler), 'public:xb.less', '// Note that th...')
#1 src/XF/CssRenderer.php(350): XF\CssRenderer->renderToCss('public:xb.less', '// Note that th...')
#2 src/XF/CssRenderer.php(258): XF\CssRenderer->renderTemplate('public:xb.less', NULL)
#3 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#4 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#5 css.php(30): XF\CssWriter->run(Array, 72, 1, '38baa9d754fe7a3...')
#6 {main}

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

Previous Less_Exception_Compiler: variable @widerwidth is undefined in file anonymous-file-5720.less in anonymous-file-5720.less - src/vendor/oyejorge/less.php/lib/Less/Tree/Variable.php:49
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Variable->compile(Object(Less_Environment))
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(27): Less_Tree_Expression->compile(Object(Less_Environment))
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Rule.php(75): Less_Tree_Value->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Rule->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#6 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#7 src/XF/CssRenderer.php(412): Less_Parser->getCss()
#8 src/XF/CssRenderer.php(350): XF\CssRenderer->renderToCss('public:xb.less', '// Note that th...')
#9 src/XF/CssRenderer.php(258): XF\CssRenderer->renderTemplate('public:xb.less', NULL)
#10 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#11 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#12 css.php(30): XF\CssWriter->run(Array, 72, 1, '38baa9d754fe7a3...')
#13 {main}

Request state

array(4) {
  ["url"] => string(349) "/css.php?css=public%3Aeditor.less%2Cpublic%3Amessage.less%2Cpublic%3Anotices.less%2Cpublic%3Arating_stars.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Asiropu_ads_manager_ad.less%2Cpublic%3Axb.less%2Cpublic%3Axfmg_media_list.less%2Cpublic%3Axfmg_media_view.less%2Cpublic%3Aextra.less&s=72&l=1&d=1614661409&k=38baa9d754fe7a38b52b413448aa3860c538cf17"
  ["referrer"] => string(61) "https://mydomainwashere/media/how-you-fill-a-pool-in-nyc.56/"
  ["_GET"] => array(5) {
    ["css"] => string(233) "public:editor.less,public:message.less,public:notices.less,public:rating_stars.less,public:share_controls.less,public:siropu_ads_manager_ad.less,public:xb.less,public:xfmg_media_list.less,public:xfmg_media_view.less,public:extra.less"
    ["s"] => string(2) "72"
    ["l"] => string(1) "1"
    ["d"] => string(10) "1614661409"
    ["k"] => string(40) "38baa9d754fe7a38b52b413448aa3860c538cf17"
  }
  ["_POST"] => array(0) {
  }
}
 

Brogan

XenForo moderator
Staff member
You have a template attempting to utilise a style property which doesn't exist - @widerwidth.

It could be an outdated template - search for templates trying to use that.
 
Top