Fix for weird characters displaying on your web page

Do you see strange characters displayed on your site like the image below?

Character salad

If so, it could be related to one of these possible causes:

the ob_gzhandler() function
Optimization plugins which add GZIP, such as:  
Add Expires Headers
Check and Enable GZIP Compression
Force GZIP
Far Future Expiration
HTTP Headers
PageSpeed Ninja 
or others
Specific themes' features/settings or other plugins that offer a caching feature ( Themify Page Builder for example)

Note: If you use Themify's Page Builder, make sure to disable its' caching option.

If you run a GZIP-related plugin on your site, deactivate it, then clear WP Rocket’s cache and see if the problem is resolved.

If you don’t use such a plugin, the solution would be to find and remove these lines anywhere in your active plugins or the theme:

ob_start( 'ob_gzhandler' )



Generally, either one of those lines would be added in your wp-config.php file, or in the header.php, footer.php, or functions.php of your active theme.

If you cannot find either one of them, install this small helper plugin instead:

📥  Download (.zip):  WP Rocket | No GZIP compression

Developers: You can find the code for this plugin on GitHub.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.