Categories
WordPress Templates

MAMP Bug: zlib Compression

There is an annoying bug that sometimes occurs in the Windows version of MAMP.

Specifically, a message like this shows up at the bottom of your pages,

Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) ..

You can fix the bug by following these steps:

  • find the version of PHP you’re using
    (in the settings or preferences of MAMP),
  • then go into the MAMP/conf/phpVersionNumber
    (ie inside the MAMP folder on your hard drive)
  • open the file php.ini
  • Search for zlib.output_compression 
  • If it’s On, change it to Off
  • Then restart the servers and reload the page you saw the error on.