Russ
Well-known member
So I'm getting this error on my styles and I'm a little baffled. I can't reproduce it consistently, it's completely random. I have had the error twice in the past few weeks, another client has the error multiple times today alone.
We've edited app.less to include a custom template "xb.less" in which further includes "xb_footer.less" inside of that. In xb_footer.less we have this:
What would cause .m-pageWidth to show as undefined exactly? This is still intact:
inside app.less at the default position.
Code:
Less_Exception_Compiler: .m-pageWidth is undefined in anonymous-file-0.less src/vendor/oyejorge/less.php/lib/Less/Tree/Mixin/Call.php:148
Generated by: Unknown account Nov 30, 2018 at 7:12 AM
Stack trace
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(147): Less_Tree_Mixin_Call->compile(Object(Less_Environment))
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(88): Less_Tree_Ruleset->EvalMixinCalls(Object(Less_Tree_Ruleset), Object(Less_Environment), 2)
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#4 src/XF/CssRenderer.php(363): Less_Parser->getCss()
#5 src/XF/CssRenderer.php(311): XF\CssRenderer->renderToCss('public:xb_foote...', '// Note that th...')
#6 src/XF/CssRenderer.php(235): XF\CssRenderer->renderTemplate('public:xb_foote...', NULL)
#7 src/XF/CssRenderer.php(101): XF\CssRenderer->renderTemplates(Array, Array, Array)
#8 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#9 css.php(30): XF\CssWriter->run(Array, 165, 1, 'f68fcdc4fbe2629...')
#10 {main}
We've edited app.less to include a custom template "xb.less" in which further includes "xb_footer.less" inside of that. In xb_footer.less we have this:
Code:
.p-footer-inner
{
.m-pageWidth();
}
What would cause .m-pageWidth to show as undefined exactly? This is still intact:
Code:
.m-pageWidth()
{
max-width: @xf-pageWidthMax;
padding: 0 @xf-pageEdgeSpacer;
margin: 0 auto;
}