XF 2.1 Problem with debuging less error

CNK

Active member
Some time after some changes in my style I have error:
Code:
Server error log
Less_Exception_Chunk: ParseError: missing opening `{` in anonymous-file-0.less on line 2794, column 1 2792| -webkit-font-smoothing: antialiased; 2793| -moz-osx-font-smoothing: grayscale; 2794| } 2795| 2796| .m-faContent(@content, @width: false, @direction: false) 2797| { src/vendor/oyejorge/less.php/lib/Less/Parser.php:677
Generated by: Unknown account 6 Marzec 2019 o 02:10
Stack trace
#0 src/vendor/oyejorge/less.php/lib/Less/Parser.php(621): Less_Parser->GetRules(NULL)
#1 src/vendor/oyejorge/less.php/lib/Less/Parser.php(449): Less_Parser->_parse()
#2 src/XF/CssRenderer.php(394): Less_Parser->parse('// Note that th...')
#3 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:core.les...', '// Note that th...')
#4 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:core.les...', NULL)
#5 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#6 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#7 css.php(30): XF\CssWriter->run(Array, 12, 3, '66c8ce94d2e7ddc...')
#8 {main}
Request state
array(4) {
  ["url"] => string(141) "/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=12&l=3&d=1551834524&k=66c8ce94d2e7ddc33ac72a1b47bbfe6c21dd6777"
  ["_GET"] => array(5) {
    ["css"] => string(53) "public:normalize.css,public:core.less,public:app.less"
    ["s"] => string(2) "12"
    ["l"] => string(1) "3"
    ["d"] => string(10) "1551834524"
    ["k"] => string(40) "66c8ce94d2e7ddc33ac72a1b47bbfe6c21dd6777"
  }
  ["_POST"] => array(0) {
  }
}

The problem appeared with a delay, probably because of styles in cache. Now I can't locate the fault, because the name 'anonymous-file-0.less' doesn't tell me anything.
 
Try the core.less file, if that has been edited.

Otherwise look through the customised components, starting with the ones which were changed just prior to the problem starting.
 
I found the cause of the problem:

v1
197267


v2
197268

v3
197269

all custom padding settings make faults in .less compiling (also blank input fields):
197271


I noticed It's only okay when put settings like @xf-paddingSmall or @xf-paddingMedium to All (first padding input field). Empty fields and custom values given in pixels cause an error.
 
Last edited:
Back
Top Bottom