XF 2.0 Why did I get this error re CSS/LESS?

Mr Lucky

Well-known member
Here is the error

Code:
Less_Exception_Chunk: ParseError: unmatched `/*` in anonymous-file-1194.less on line 1532, column 31 1530| border-style:solid;} 1531| 1532| /* for support the cafe thread*/ 1533| 1534| .pbox 1535| src/vendor/oyejorge/less.php/lib/Less/Parser.php:677
Generated by: Unknown account Nov 2, 2017 at 11:13 AM
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(316): Less_Parser->parse('// Note that th...')
#3 src/XF/CssRenderer.php(297): XF\CssRenderer->renderToCss('public:extra.le...', '// Note that th...')
#4 src/XF/CssRenderer.php(226): XF\CssRenderer->renderTemplate('public:extra.le...', NULL)
#5 src/XF/CssRenderer.php(100): XF\CssRenderer->renderTemplates(Array, Array, Array)
#6 src/XF/CssWriter.php(37): XF\CssRenderer->render(Array)
#7 css.php(29): XF\CssWriter->run(Array, 50, 1)
#8 {main}
Request state
array(4) {
  ["url"] => string(199) "/css.php?css=public%3Anode_list.less%2Cpublic%3Apete_footer.css%2Cpublic%3Aprefix_menu.less%2Cpublic%3Aquestionthreads.less%2Cpublic%3Astructured_list.less%2Cpublic%3Aextra.less&s=50&l=1&d=1509621219"
  ["referrer"] => string(57) "https://xxxxx.cafesaxophone.com/forums/admin-discussion.26/"
  ["_GET"] => array(4) {
    ["css"] => string(142) "public:node_list.less,public:pete_footer.css,public:prefix_menu.less,public:questionthreads.less,public:structured_list.less,public:extra.less"
    ["s"] => string(2) "50"
    ["l"] => string(1) "1"
    ["d"] => string(10) "1509621219"
  }
  ["_POST"] => array(0) {
  }
}

The extra.less section it refers to is this:

CSS:
.specialpost

{
font-weight: @xf-fontWeightHeavy;
background-color: rgb(255, 246, 225);
border-color: rgb(98, 0, 143);
border-radius: 12px;
border-width: 80px 30px 30px 30px;
padding: 25px;
margin:20px 10% 20px 10%;

border-style:solid;}

/* for support the cafe thread*/

.pbox

{width:420px;
min-height:200px;
padding:0px 8px;
margin-right:10px;
margin-bottom:10px;
border:1px solid #ccc;
border-radius:3px;
float:left;
}

OK, it's a bit lazy with the empty line and no space before the cooling comment */

But is that bad enough to cause the error?
 
I pasted that CSS into extra.less and didn't get any errors from it, so I'm not sure if there's something else at play exactly.
 
Back
Top Bottom