Closed (works as designed)
Project:
Drupal core
Version:
7.10
Component:
CSS
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jan 2012 at 16:01 UTC
Updated:
22 Nov 2012 at 11:37 UTC
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
Comment #1
danny_joris commented- Found this, but php safe_mode is off: http://katiemcgarrymusic.com/phpinfo.php
#1388238: Aggregate and compress CSS files Problem
- 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
Comment #2
danny_joris commentedComment #3
droplet commentedI guess your front server (Nginx / Varnish) rezip it again.
Comment #4
danny_joris commentedThanks 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.
Comment #5
danreb commentedWhat about in Firefox or in other browsers? Can you post screenshot of HTTP Headers?
Do you try to clear the cache first?
Comment #6
jarune commentedTry 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.
Comment #7
danny_joris commentedHmm, my hosting company now replaced everything in my .htaccess file with the following and everything works great now.
That's way less than the original file, but it seems to work.
Comment #8
droplet commentedYou're removed the gzip.
Comment #9
fabianx commentedWorks as designed, if the hosting company uses gzip turn it off in Drupal Core.