White or blank screen when WP Rocket is active

There are a few possible reasons why you may see a white or blank screen after activating WP Rocket. Here are some troubleshooting tips.

Check the error logs

A fatal PHP error is often hiding behind the blank screen, so the first step is to check your site's PHP error logs. If you don't know where to find them, ask your host. 

Or enable WP_DEBUG.

Lack of PHP memory

This will usually show up as a fatal error in the error log.

Please see this guide for an example of the error message and the solution.

Misuse of output buffering functions

If you see this error in your log:

PHP Fatal error:  Call to a member function get() on null in /wp-includes/cache.php on line 123

Check for this line in the functions.php of your theme:

remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );

If you find it, comment it out, like this:

// remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );

When misused, similar functions, for example, ob_get_clean and ob_end_clean can conflict with WP Rocket and cause fully or partially white screens.

Deactivate File Optimization options

Try disabling all the options on the File Optimization tab in WP Rocket to see if the problem comes from a specific setting.

Known conflicts

Here's a list of the plugins which are known to cause blank screen errors when used along with WP Rocket:

  • ABEConnector plugin

    To fix this, using any of these methods, you can add the following snippet to your website:

    add_filter( 'rocket_url_to_postid_query_args', function( $args ) {
    	$args['suppress_filters'] = true;
    	return $args;
    } );
  • Clearfy-Pro plugin
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.