FIX ERROR (( ERR_CONTENT_DECODING_FAILED )) IN APACHE&PHP

error

Sometimes 3rd party PHP code just refuses to launch. Actually, it happens quite often. If you have just copied it and it worked – it’s a good sign. This time it wasn’t the case.

After going through all the initial steps, it looked like it should work, but instead of usual runtime errors this PHP application, running on Apache 2.4.9 & PHP 5.5.12, started showing this:

ERR_CONTENT_DECODING_FAILED

 

firefox :

content-encoding-error-firefox

 

ERR_CONTENT_DECODING_FAILED
Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.

To resolve this issue is to add the following line in the php.ini

zlib.output_compression = On

If  you see it already added ?

Do not re-add it But change Off >> On

and restart apache

that’s all done

Regards .. 🙂

Share Button