Hello,

I created a fairly simple D7.10 site: http://katiemcgarrymusic.com . However, when I enable css compression, all layout breaks in IE 7 & 8, meaning only content is shown. When I disable css compression the site renders correctly.

I would expect almost the opposite behavior.

When I look at the source code I do see that the correct stlyesheets are loaded according to the settings.

I tried searching drupal.org and asked multiple times on IRC, but I can't find an answer.

Comments

Danny_Joris’s picture

- Found this, but php safe_mode is off: http://katiemcgarrymusic.com/phpinfo.php
[#1388238]

- tried setting files and folders to 777 from /files without success.

- I noticed this error log called from the performance page: The file public://ctools/css was not deleted, because it does not exist.

- I checked with my host company and both mod_rewrite and mod_header are enabled.

- D7.10 has the change in .htaccess ('set' instead of 'append') , but it's still not working: http://drupal.org/node/1116416

Danny_Joris’s picture

Issue tags: +CSS
droplet’s picture

I guess your front server (Nginx / Varnish) rezip it again.

Danny_Joris’s picture

Thanks for your feedback.

Not sure what you mean with front server though. I'm not using Varnish or Nginx as far as I know. I didn't enable them and I assume my shared hosting isn't either.

I tried removing the .css and .gz files but that didn't help.

danreb’s picture

What about in Firefox or in other browsers? Can you post screenshot of HTTP Headers?
Do you try to clear the cache first?

jarune’s picture

Try debugging by excluding the css files one by one. Probably one of them is not well-formed or has a character that breaks the compression. I had the same issue with soms exotic browser hacks.

Danny_Joris’s picture

Hmm, my hosting company now replaced everything in my .htaccess file with the following and everything works great now.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

That's way less than the original file, but it seems to work.

droplet’s picture

Category: bug » support

You're removed the gzip.

Fabianx’s picture

Status: Active » Closed (works as designed)

Works as designed, if the hosting company uses gzip turn it off in Drupal Core.