XF 2.0 Noob here, server just stopped working a few days ago and I keep getting this error in the log

_reg

New member
I have no idea how to fix this, I haven't changed anything so I suspect this was an automatic update that broke something. Any ideas how to fix?
Please give steps, I'm pretty new to this aha

Code:
Less_Exception_Compiler: variable @primaryLighterStill is undefined in file anonymous-file-0.less in anonymous-file-0.less src/vendor/oyejorge/less.php/lib/Less/Tree/Variable.php:49
Generated by: Unknown account May 13, 2019 at 1:39 PM
Stack trace
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(42): Less_Tree_Variable->compile(Object(Less_Environment))
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(27): Less_Tree_Expression->compile(Object(Less_Environment))
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Rule.php(75): Less_Tree_Value->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Rule->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#6 src/XF/CssRenderer.php(363): Less_Parser->getCss()
#7 src/XF/CssRenderer.php(311): XF\CssRenderer->renderToCss('public:extra.le...', '// Note that th...')
#8 src/XF/CssRenderer.php(235): XF\CssRenderer->renderTemplate('public:extra.le...', NULL)
#9 src/XF/CssRenderer.php(101): XF\CssRenderer->renderTemplates(Array, Array, Array)
#10 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#11 css.php(30): XF\CssWriter->run(Array, 1, 1, 'faf68dacf6a4a0e...')
#12 {main}
Request state
array(4) {
  ["url"] => string(103) "/forums/css.php?css=public%3Aextra.less&s=1&l=1&d=1547300136&k=faf68dacf6a4a0e1b25f45bb0f60a17a4eb9ac47"
  ["referrer"] => string(55) "http://www.thelovecabin.org/forums/index.php?whats-new/"
  ["_GET"] => array(5) {
    ["css"] => string(17) "public:extra.less"
    ["s"] => string(1) "1"
    ["l"] => string(1) "1"
    ["d"] => string(10) "1547300136"
    ["k"] => string(40) "faf68dacf6a4a0e1b25f45bb0f60a17a4eb9ac47"
  }
  ["_POST"] => array(0) {
  }
}
 
@primaryLighterStill is a XenForo 1 style property which doesn't exist in XF2. You also shouldn't be able to import an XF1 style on XF2. Did you recently upgrade? On upgrade they attempt to keep the color values, so may be a bug in that process if that's the case?
 
@primaryLighterStill is a XenForo 1 style property which doesn't exist in XF2. You also shouldn't be able to import an XF1 style on XF2. Did you recently upgrade? On upgrade they attempt to keep the color values, so may be a bug in that process if that's the case?
Haven't recently updated or even touched the backend since way before this happened and I'm not using a style or template I don't think :L
 
Do a template search for '@primaryLighterStill' - that should identify which template it is in, possibly extra.less.

Thanks, I just cleared this from my extra.less but it seems like it's still not working.

I don't know if this is a clue but what happens when I try and open my website is it redirects to mysite.com/forums/install/app.php
 

Attachments

  • 2019-05-23 03_19_02-Edit template_ extra.less _ The Love Cabin - Admin control panel.webp
    2019-05-23 03_19_02-Edit template_ extra.less _ The Love Cabin - Admin control panel.webp
    12.1 KB · Views: 15
Just bumping this with my .htaccess if anyone can spot what's wrong

Edit: Apparently it's stuck in a redirect loop, anyone know how that could happen?

Code:
<IfModule mod_rewrite.c>
RewriteEngine on

#
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB
# in http://www.test.com/phpBB/index.php you have to set
# the statement RewriteBase /phpBB/
#
#RewriteBase /

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

#
# The following 3 lines will rewrite URLs passed through the front controller
# to not require app.php in the actual URL. In other words, a controller is
# by default accessed at /app.php/my/controller, but can also be accessed at
# /my/controller
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]

#
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
#
#Options +FollowSymLinks
</IfModule>

# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
    <IfVersion < 2.4>
        <Files "config.php">
            Order Allow,Deny
            Deny from All
        </Files>
        <Files "common.php">
            Order Allow,Deny
            Deny from All
        </Files>
    </IfVersion>
    <IfVersion >= 2.4>
        <Files "config.php">
            Require all denied
        </Files>
        <Files "common.php">
            Require all denied
        </Files>
    </IfVersion>
</IfModule>
<IfModule !mod_version.c>
    <IfModule !mod_authz_core.c>
        <Files "config.php">
            Order Allow,Deny
            Deny from All
        </Files>
        <Files "common.php">
            Order Allow,Deny
            Deny from All
        </Files>
    </IfModule>
    <IfModule mod_authz_core.c>
        <Files "config.php">
            Require all denied
        </Files>
        <Files "common.php">
            Require all denied
        </Files>
    </IfModule>
</IfModule>
 
That looks to be a htaccess from phpBB.

In the root of your XenForo install you should see the default XF htaccess named htaccess.txt, rename it to .htaccess.
 
Top Bottom