Jump to content

[SOLVED] Error 500 using template cache


Recommended Posts

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

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

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

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

  • Like 1
Link to comment
Share on other sites

  • herr rilke changed the title to [SOLVED] Error 500 using template cache

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...