herr rilke Posted June 22, 2024 Posted June 22, 2024 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?
da² Posted June 22, 2024 Posted June 22, 2024 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.
herr rilke Posted June 23, 2024 Author Posted June 23, 2024 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
da² Posted June 24, 2024 Posted June 24, 2024 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...
wbmnfktr Posted June 24, 2024 Posted June 24, 2024 There must be something in either the error or exception log of ProcessWire itself.
herr rilke Posted June 24, 2024 Author Posted June 24, 2024 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
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