WordPress website loading gibberish text? Here’s how to solve it

Website showing gibberish text
Does your website look like this?

Let me guess – when you’re logged in, your website loads just fine, but when you log out and reload your website, it looks like a wall of gibberish? That’s due to overlapping compression, most likely between your cPanel’s zlib compression and a compression plugin on your WordPress site.

How to fix this

You’ll be surprised how easy it is to fix this. Simply:

  1. Login to your WordPress admin
  2. Enter the settings page of whatever compression plugin you’re using (e.g. I’m using Swift)
  3. Disable GZip
Swift GZip settings
If you’re using Swift Performance, here’s where it is

Alternatively, you can disable the one in your cPanel:

  1. Login to cPanel
  2. Either:
    1. Enter the “Optimize Website” page
    2. Do not compress anything
      OR
    3. Enter the PHP Options
    4. Disable zlib_compression

Let me know if it works for you too. Alternatively if you have any other suggestions, feel free to add to comments!

Special thanks to Johnny Nguyen for the fix!

Share via
Copy link
Powered by Social Snap