ob_gzhandler’ conflicts with ‘zlib output compression

If you are using gzip compression in your webpage coding and you get following error
Errror :
Warning: ob_start(): output handler ‘ob_gzhandler’ conflicts with ‘zlib output compression’ in /home/username/public_html/…/… on line …
Solution:
You have to add following code on non-suexec server in your .htaccess file.
php_value zlib.output_compression off
or
on suexec server create php.ini file and add following code
zlib.output_compression = Off
Done

Leave a Comment