If you in administration section :

admin/settings/performance - Bandwidth optimizations - Optimize CSS files:

turn Enable ON

Everything turn white and text formating is lost

Comments

VM’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

unconfirmed - I have css compression enabled on my site and the stylesheet is showing as expected.

ensure that the css file was physically written to your files/css folder

alliax’s picture

We have same problem with the default theme for the drigg module, no solution yet because we don't know the source of the problem, definitively not a file permission problem:
http://drupal.org/node/332118

jwolf’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

What do your web server logs say? PHP error logs?
Might be an issue w/ allotted memory for PHP or an issue with Suhosin ( http://www.hardened-php.net ) .

I doubt that this is an issue caused by the theme.

alliax’s picture

Someone got to the bottom of the problem, see in the thread I referenced earlier. It's about adding lines to yourtheme.info file, so that the optimize css know what to include. It wasn't required in D5, that's why.

patrickwang5’s picture

I have similar problem. I enable optimize css and js. Some style get lost for the pages sometimes. I check the log. It shows that some css file and js file are missing. The filename is an random filename after turned on optimize option. Drupal delete these files after sometime and the pages can not find these files when next time they load.

davepratt’s picture

I had this exact same problem. What fixed it for me was switching PHP safe mode off in your php.ini file:
safe_mode = Off

pendashteh’s picture

Priority: Normal » Critical
Status: Closed (won't fix) » Active

the problem arises on non-core themes only.
take a look at http://drupal.org/node/752592

jeremycaldwell’s picture

Status: Active » Closed (won't fix)
akolahi’s picture

i had the same problem. I'm not sure if this is a help to anyone, but upgrading all my modules and drupal to the latest versions fixed the issue for me. It didn't have anything to do with the theme.

Neli’s picture

We also have the same problem with our website. If we disable the optimize css the theme just crashes.
The css files are even deleted after a while. The very strange thing is that we haven't edited anything on the website for a few weeks or so (we've been working on a development site).
I did all the possible module updates but that didn't do anything. We're still looking into it.
And we are using Drupal 6.19.
If anybody has an answer it would be very welcome.

Footeuz’s picture

I just update my drupal core 6.13 to 6.19
I see now the code of the batch on the common.inc file.

But now my theme crash when enable the optimize css files.

Does someone have the solution ?

Footeuz’s picture

I found the solution.
You just have to convert all your css files in unix/utf8 and it's done.

Tiago Paolini’s picture

Title: Optimize CSS files enabled - theme disappear » Thanks

I was having the same problem with another theme and your solution solved my problem :)

I was saving the css files I created in ANSI, but converting them to UTF-8 made them worl with Drupal's CSS optimization. Thanks!