herr rilke Posted June 22 Share Posted June 22 hi there, as soon as i setup caching for a template in PW backend i get error 500 in the frontend. im using ProcessWire 3.0.239 on PHP 8.2 is there anything i need to do before using caching? Link to comment Share on other sites More sharing options...
da² Posted June 22 Share Posted June 22 Hi, I don't know but maybe template caching requests some module to be installed in web server, like URL rewriting. Check your web server logs and you'll find the reason of this error. Link to comment Share on other sites More sharing options...
herr rilke Posted June 23 Author Share Posted June 23 On 6/22/2024 at 2:10 PM, da² said: Check your web server logs and you'll find the reason of this error. mod_rewrite is in place but no entries in the log.file Link to comment Share on other sites More sharing options...
da² Posted June 24 Share Posted June 24 What web server and OS do you use? Error 500 is a web server error, and errors are logged by default. The log file location depends on OS and web server, for example in xampp Windows with Apache, it's in xampp/apache/logs/error.log, in Debian it's in /var/log/apache2/error.log... Link to comment Share on other sites More sharing options...
wbmnfktr Posted June 24 Share Posted June 24 There must be something in either the error or exception log of ProcessWire itself. Link to comment Share on other sites More sharing options...
herr rilke Posted June 24 Author Share Posted June 24 thank you! i found some entries in the PW exception log @wbmnfktr, not in apache's error.log! variable @global-secondary-background is undefined in file /site/templates/RockPageBuilder/blocks/CallToAction/CallToAction.less in CallToAction.less on line 23, column 14 21| .uk-background-primary { 22| h3 { 23| color: @global-secondary-background !important; 24| } 25| .text { 26| color: white; In /site/modules/Less/wikimedia/less.php/lib/Less/Tree/Variable.php line 50 i am going to fix this. lessons learned: PW exception log was the right place to look for 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now