Template error: Template public:setup_fa_variables.less is unknown (after preview-upgrade)

Earl

Well-known member
I disabled every add-on using xf:addon-disable cli option in order to run xf:upgrade.

05ezRQRl.png

Code:
ErrorException: Template error: Template public:setup_fa_variables.less is unknown src/XF/Template/Templater.php:610

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template public...', 'src/XF/Tem...', 610, Array)
#1 src/XF/Template/Templater.php(610): trigger_error('Template public...', 512)
#2 src/XF/Template/Templater.php(561): XF\Template\Templater->getTemplateData('public', 'setup_fa_variab...')
#3 src/XF/Template/Templater.php(1292): XF\Template\Templater->getTemplateCode('public', 'setup_fa_variab...')
#4 src/XF/Template/Templater.php(1366): XF\Template\Templater->renderTemplate('setup_fa_variab...', Array)
#5 internal_data/code_cache/templates/l1/s6/public/setup.less.php(41): XF\Template\Templater->includeTemplate('public:setup_fa...', Array)
#6 src/XF/Template/Templater.php(1293): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#7 src/XF/CssRenderer.php(649): XF\Template\Templater->renderTemplate('setup.less', Array)
#8 src/XF/CssRenderer.php(393): XF\CssRenderer->getLessPrepend()
#9 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:extra.le...', '')
#10 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:extra.le...', NULL)
#11 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#12 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#13 css.php(30): XF\CssWriter->run(Array, 6, 1, 'f9bda57a5f0a06b...')
#14 {main}

Code:
Request State
<pre class='xdebug-var-dump' dir='ltr'>
<small>/app/src/XF/Debugger.php:28:</small>
<b>array</b> <i>(size=4)</i>
  'url' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'/css.php?css=public%3Aextra.less&amp;s=6&amp;l=1&amp;d=1542790191&amp;k=f9bda57a5f0a06bce0819bb6476246dbd5776600'</font> <i>(length=96)</i>
  'referrer' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'http://localhost/index.php'</font> <i>(length=26)</i>
  '_GET' <font color='#888a85'>=&gt;</font>
    <b>array</b> <i>(size=5)</i>
      'css' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'public:extra.less'</font> <i>(length=17)</i>
      's' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'6'</font> <i>(length=1)</i>
      'l' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'1'</font> <i>(length=1)</i>
      'd' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'1542790191'</font> <i>(length=10)</i>
      'k' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'f9bda57a5f0a06bce0819bb6476246dbd5776600'</font> <i>(length=40)</i>
  '_POST' <font color='#888a85'>=&gt;</font>
    <b>array</b> <i>(size=0)</i>
      <i><font color='#888a85'>empty</font></i>
</pre>
Getting this error when loading the homepage as admin. Guests and regular users can load without any issue.
Admin panel loads without a problem
(used new incognito browser windows for each user)
 
This is likely down to an outdated setup.less template. Presumably guests are using a different style to the admin?
Aahhh, How silly I am. Yes, that's it.
disabling styles and switching to the default doesn't work, because Admin has the permission to use the disabled style.
I restored the old version from backup and this time I deleted the outdated style from previous backup, then performed the upgrade. Now everything seems fine.
Thanks @Chris D
 
Back
Top Bottom