Gzip Error: ob_gzhandler conflicts with zlib output compression
Wednesday, July 4th, 2007
I started getting this error when I enabled gzip compression for my server:
[Wed Jul 4 23:17:05 2007] [error] PHP Warning: ob_start() [ref.outcontrol]: output handler ‘ob_gzhandler’ conflicts with ‘zlib output compression’ in /script.php on line 419
I fixed it by adding this to my .htaccess file:
php_flag zlib.output_compression Off
I think the reason it was happing was that one of my scripts was trying to turn on compression when it was already on..
Another option would be to open the script causing the problem and edit out the lines that call compression.