Dynamic
Well-known member
Hi guys,
I'm not sure when this problem occurred, but I noticed it after updating to v2.1.4. So, this is what is happening.
extra.less has the following within it
Colors.less has the following within it
So, when I create a templates less file, I can use @Dark to define a colour for whatever it is I want, and the colour will be #333333. This has been working without an issue up until recently. Since upgrading (I believe) to 2.1.4, everything works perfectly. However, if I create a new template, and use the variable @Dark, it throws an error. The error is
It is very strange and I can't figure out what is causing the issue. All templates that were created prior to the upgrade seem to not have this issue.
@Aayush has also seen this problem.
Thanks.
I'm not sure when this problem occurred, but I noticed it after updating to v2.1.4. So, this is what is happening.
extra.less has the following within it
Code:
<xf:include template="Colors.less" />
Colors.less has the following within it
Code:
@Dark: #333333;
So, when I create a templates less file, I can use @Dark to define a colour for whatever it is I want, and the colour will be #333333. This has been working without an issue up until recently. Since upgrading (I believe) to 2.1.4, everything works perfectly. However, if I create a new template, and use the variable @Dark, it throws an error. The error is
Code:
XF\CssRenderException: Error rendering template public:newTemplate.less: variable @Dark is undefined in file public:newTemplate.less in public:newTemplate.less (on or near line 3331) src/XF/CssRenderException.php:87
It is very strange and I can't figure out what is causing the issue. All templates that were created prior to the upgrade seem to not have this issue.
@Aayush has also seen this problem.
Thanks.