Firefox - Content Encoding Error / Google Chrome - Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Tue, 2011-08-09 11:21. :: Errors

Error: Firefox - Content Encoding Error / Google Chrome - Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.

When you open a PHP page in your Firefox, you get the following error:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

* Please contact the website owners to inform them of this problem.

In Google Chrome, you get the following error:

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

 

Solution

The solution is to turn on zlib.output_compression in your php.ini.

Open your php.ini. On Debian/Ubuntu, it's /etc/php5/apache2/php.ini:

vi /etc/php5/apache2/php.ini

On Fedora/CentOS/RedHat, it's /etc/php.ini:

vi /etc/php.ini

Find the zlib.output_compression line and turn zlib.output_compression on:

zlib.output_compression = On

Restart Apache afterwards:

On Debian/Ubuntu, you run:

/etc/init.d/apache2 restart

On Fedora/CentOS/RedHat, you run:

/etc/init.d/httpd restart


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Mark Poulding (not registered) on Mon, 2014-02-03 22:28.
Can confirm this worked perfectly for me, running a cms on plesk.
Submitted by Patrick (not registered) on Thu, 2012-07-26 05:29.
this is great if your the developer, what do we do if I am on linux and run into this problem quite frequently?
Submitted by Kd (not registered) on Mon, 2013-02-04 09:09.
i was the problem of Error 330 (net::ERR_CONTENT_DECODING_FAILED) then i just turn on zlib.output_compression but it still on working now pages shows different erro 

 The requested URL /forum/forum/25/yahoo/ was not found on this server.


Apache/2.2.3 (Red Hat) Server at www.omnitechsupport.com Port 80
 
Submitted by ShaunaTexis (not registered) on Mon, 2012-01-30 10:54.
Chrome error is not something unique happened to you.
Sometimes there is a dreadful total crash of the browser and sometime it sends ddifferent errors, upon restarting nothing happens.
Such sorts of errors can be linked to the file association issues. The file association references are the important components of the registry database in Windows. A registry repair scan, which has the power to fix file association errors, will help you to find the solution for Google chrome error.

I fixed this error after reading this article  chrome error, google chrome error

Hope you might get help from this article too.