A maintenance event to our servers or software is in progress. It may not affect you. Select the link on the right for details. Learn more

White screen when clearing WP Rocket cache Print

  • 0

Problem Description

One or more of the following must be true for this solution to apply:

  1. You use WP Rocket and when you clear/refresh the WP Rocket cache, you get a white screen of death. (WP Rocket support indicated that wp_get_referer() didn’t seem to be working on our server. Yet there’s no reason why that should be the case)
  2. When enabling WP Rocket with just Apache processing and no nginx, it was unable to write to the .htaccess file (despite having FastCGI access enabled for PHP and definitely having correct permissions and ownership over the files).
  3. WP Rocket indicates this error: “If you had writing permissions on .htaccess file, WP Rocket could do this automatically. This is not the case, so here are the rewrite rules you have to put in your .htaccess file for WP Rocket to work correctly. Click on the field and press Ctrl-A to select all.

Problem Resolution

In the WordPress general settings, make sure your siteurl and homepath values are identical. This resolves both the .htaccess writing error, and the white screen while clearing cache.

NOTE: someone may have set those values differently on purpose. One example of this is found in our guide to installing WordPress in a subfolder, but making it look like it's in the root. If that's the case for you, it's strongly recommended to change to Solution 1 in that very same guide, wherein you move the site files such that they actually reside in the root and not in the subfolder. This way you don't need to have mismatched siteurl and homepath values and the issue above can be resolved easily.


Was this answer helpful?

← Back