when I trying to install drupal 7 i have this error:

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

what is the problem?

Comments

mdupont’s picture

Seems like an HTTP server of .htaccess configuration issue.

binford2k’s picture

I'll bet that you are applying gzip rules twice. Did you put the .htaccess rules into your httpd.conf (or similar) and leave the .htaccess in the web root?

inTOOLS’s picture

Try to play with the last section of the .htaccess file for D7:

  <IfModule mod_headers.c>
    # 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]

    <FilesMatch "(\.js\.gz|\.css\.gz)$">
      # Serve correct encoding type.
      Header append Content-Encoding gzip
      # Force proxies to cache gzipped & non-gzipped css/js files separately.
      Header append Vary Accept-Encoding
    </FilesMatch>
  </IfModule>

Maybe you will have to comment it all on your server. I think that this feature could slow down D7 installations on some servers. I switched it off myself, and strangely enough, I experienced huge improvement in performance.

akayani’s picture

Man I've been trying to sort this out for weeks.

Try putting that in your php.ini file.
display_errors = Off