Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Danny_Joris commented- 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
Comment #2
Danny_Joris CreditAttribution: Danny_Joris commentedComment #3
droplet CreditAttribution: droplet commentedI guess your front server (Nginx / Varnish) rezip it again.
Comment #4
Danny_Joris CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: droplet commentedYou're removed the gzip.
Comment #9
Fabianx CreditAttribution: Fabianx commentedWorks as designed, if the hosting company uses gzip turn it off in Drupal Core.