Hello,
I have tried to install Drupal 7.15 to use as a web portal for my student parliament (www.pumstudent.net). When I try to open this page in IE, firefox or chrome I get this error message:
Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.
and that my website is using an unsupported form of compression. I must add that it works perfectly in Opera (12.02, but also older versions).
I tried to contact my web host, as I figured that it could be some form of error in the apache server after quite a few google searches, but they said it was related to my CMS. I can not find any settings regarding compression in my user interface at my web host provider.
I must also add that the website worked perfectly with a previous version that the host provider had as an automatic install (Drupal 7.7). The problems appeared when I updated the core to 7.15, or even when I did a fresh install (which I have done 3 times, just to eliminate any error made by me).
I attach the information given from the drupal report site.
Drupal 7.15
OK Access to update.php Protected
OK Configuration file Protected
OK Cron maintenance tasks Last run 1 hour 11 min ago
OK Database system MySQL, MariaDB, or equivalent
OK Database system version 5.5.27-log
OK Database updates Up to date
OK File system Writable (public download method)
OK GD library PNG support bundled (2.0.34 compatible)
OK GD library rotate and desaturate effects bundled (2.0.34 compatible)
OK Node Access Permissions Disabled
OK PHP 5.3.14 (more information)
OK PHP extensions Enabled
OK PHP memory limit 192M
OK PHP register globals Disabled
OK Unicode library PHP Mbstring Extension
OK Update notifications Enabled
OK Web server IdeaWebServer/v0.80 (like Apache)
I have tried to do some googleing to see if I could find a solution, but I could not find anything which applied to my problem. The best solution I could find, was to turn off cache from the drupal settings interface, but this was already off.
Anyone have any ideas to what I can do to fix this? I could also try to get some more information if needed.
Best regards
Oddgeir
Comments
Your hosting company seems to
Your hosting company seems to be using IdeaWebServer and not apache and that may be the source of the problem since the encoding is a function of the web server (not Drupal).
For future reference, I
For future reference,
I contacted my hosting provider again, and got to speak with a second-line technician that was able to assist me. This is the reply I got:
"
I would like to inform you, that error about compression is related with gzip, that we do not offer. To turn it off please comment at .htaccess file in Drupal installation from 109 line to the end:
#
# Serve gzip compressed CSS files if they exist and the client accepts gzip.
# RewriteCond %{HTTP:Accept-encoding} gzip
# RewriteCond %{REQUEST_FILENAME}\.gz -s
# RewriteRule ^(.*)\.css $1\.css\.gz [QSA]
# Serve gzip compressed JS files if they exist and the client accepts gzip.
# RewriteCond %{HTTP:Accept-encoding} gzip
# RewriteCond %{REQUEST_FILENAME}\.gz -s
# RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
# Serve correct content types, and prevent mod_deflate double gzip.
# RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
# RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]
#
# Serve correct encoding type.
# Header set Content-Encoding gzip
# Force proxies to cache gzipped & non-gzipped css/js files separately.
# Header append Vary Accept-Encoding
#
#
#
Save file and verify again.
"
Great success!