I just upgraded to 2.3.5, and I am getting this error using the Core skin:

  • XF\CssRenderException: Error rendering template public:app.less: error evaluating function `clamp` [E_NOTICE] Object of class Less_Tree_Dimension could not be converted to int index: 22274 in public:app.less (on or near line 1)
  • src/XF/CssRenderException.php:89
  • Generated by: Unknown account
  • Jan 30, 2025 at 9:09 PM

Stack trace​

*1*| // Note that this file should never output any CSS directly. It should contain variables and mixins only.
2 | // Output should go into core.less.
3 |
4 | // ################################ VARIABLES ###############################
------------

#0 src/XF/CssRenderer.php(435): XF\CssRenderException::createFromLessException(Object(Less_Exception_Compiler), 'public:app.less', '// Note that th...')
#1 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#2 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:app.less', 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, 1, '6e3aa946c2cfc33...')
#6 {main}

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

Previous Less_Exception_Compiler: error evaluating function `clamp` [E_NOTICE] Object of class Less_Tree_Dimension could not be converted to int index: 22274 in anonymous-file-0.less - src/vendor/oyejorge/less.php/lib/Less/Tree/Mixin/Call.php:130
#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(90): Less_Tree_Ruleset->EvalMixinCalls(Object(Less_Tree_Ruleset), Object(Less_Environment), 1)
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(95): Less_Tree_Ruleset->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(95): Less_Tree_Ruleset->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Parser.php(181): Less_Tree_Ruleset->compile(Object(Less_Environment))
#5 src/XF/CssRenderer.php(431): Less_Parser->getCss()
#6 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#7 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:app.less', NULL)
#8 src/XF/CssRenderer.php(135): XF\CssRenderer->renderTemplates(Array, Array, Array)
#9 src/XF/CssWriter.php(60): XF\CssRenderer->render(Array)
#10 css.php(32): XF\CssWriter->run(Array, 13, 1, '6e3aa946c2cfc33...')
#11 {main}
 
That specific error mentions clamp which is a CSS function but we don't actually use clamp on our styles. If you search your templates for clamp does it come up with anything? Maybe from an add-on?
 
Nope. Nothing. It only happens in Core, not in the default XF skin.

Actually, scratch my message if you saw it. I do indeed have the error but I can't seem to produce it on a regular basis. Interesting... I'll submit a bug report to XenForo, since we didn't push out updates I don't really know how it could be something in the style.
 
Hello,

Does this also apply to the evolve theme?

Referring to my original post or the error message?

Evolve 2.3.4 will work on 2.3.5. The error above I believe is actually some sort of XenForo bug and I think it actually only throws if you have debug mode on (which you should not have on with a live site). So yes, should be safe.
 
I'm sorry, my mistake. I didn't give details, I

meant does it support the new update, so actually your first message is yes.
 
I get this same error and I don't have debug mode enabled. @Russ I had this same issue with another style I was using from a competitor. To solve the issue I had to delete my current style and import the style again. Then I had to reapply all my custom settings. Was a pain in the a** but the errors went away. Would be nice not to have to do that with your style!

Itworx4me
 
I get this same error and I don't have debug mode enabled. @Russ I had this same issue with another style I was using from a competitor. To solve the issue I had to delete my current style and import the style again. Then I had to reapply all my custom settings. Was a pain in the a** but the errors went away. Would be nice not to have to do that with your style!

Itworx4me

Thanks for the heads up. Glad to know it's not isolated to our styles. I also have a fairly customized default style which is doing it as well. Hopefully, they respond quickly.
 
I have this same error as well (they just upgraded our Cloud install). I believe this is being discussed here:

 
Any issues with 2.3.6 @Russ ? Running Bolt here

No issues. "message_macros" shows outdated but there were no changes in the template at all. Not sure what happened there. You can just click "SAVE AND EXIT on the parent level to get rid of the message (or merge it). It did it on the default style too (I modify the default style with all of our templates to check for changes and nothing changed).

I'm talking to XF about a potential bug in 2.3.6 but I'll be releasing an update shortly to address a few minor things.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back