If some of your WordPress posts or pages have the following error messsage output to the screen ob_end_flush: failed to send buffer of zlib, etc, the following steps should fix it.
- 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 Off, change it to Off
- In MAMP, restart the servers