My system

  • Windows Server 2003
  • PHP 4.4.0
  • MySQL 4.1
  • Drupal 5.1

Problem
I tried to enable the System Configuration >> Performance >> Aggregate and compress CSS setting on my instance of Drupal, but a critical error occurred.

After enabling this setting viewing nodes and settings admin pages worked fine, and the XHTML import for CSS was working for the aggregated and compressed CSS. But when I went to edit a node, the page would only return the following error:

PHP has encountered a Stack overflow

Disabling the Aggregate and compress CSS performance setting returned the site's functionality back to normal. I'm not sure exactly what would be causing this, but any insight would be great.

Comments

m3avrck’s picture

Wow that's pretty crazy... hmm.

Did you check to see if a CSS file was created? /file/css/36236236235325325.css or some md5 has named CSS file should exist.

Check the contents do they look ok?

eferraiuolo’s picture

Yes the CSS file was created and the content did seem OK. Note that everything of the site looked and functioned properly besides when I went to edit a node, then I would get the stack overflow PHP error.

ramoneur’s picture

I have the same problem.

Windows 2000 Server, Apache/2.0.54 (Win32) PHP/5.1.4, MySQL 4.1.13a, Drupal 5.1

When "Compress CSS" is on, Firefox writes that it cannot load the page.
I have the following error in Apache.
[notice] Parent: child process exited with status 3221225725 -- Restarting.

The only way to solve that is to change the "preprocess_css" variable in MySQL table to s:1:"0" and to load cron.php

gurukripa’s picture

ERROR
The selected file /tmp/filecyAy5j could not be uploaded, because the destination files/css/dadc57d29eec2a15e046d9f5c8fb0e07.css is not properly configured.

I keep getting this error. Can someone advise what to do..becoz of this error I am not able to Enable .. Aggregate and compress CSS files:
Someone can advice what to do...becoz of this..my page loading is awfully slow.
thanks
I dont have throttle on :)

gurukripa’s picture

sorry forgot to mention..that my site is live with drupal 5.1

and the server details are:

O/S: Linux
kernel division -2.6.9-42.0.10.Elsmp
machine type: i686
Apache version: 1.3.37(Unix)
PERL : 5.8.7
PHP Version: 4.4.6
My Sql version: 4.1.20 - standard - log
cpanel build -10.9.0-stable 119
theme - cpanel Xv2.6.0

please help me out..thanks

gurukripa’s picture

The selected file /tmp/fileyRQfeh could not be uploaded, because the destination files/css/dadc57d29eec2a15e046d9f5c8fb0e07.css is not properly configured.

i tried again now with the new pathauto configured..but still same thing..another error..the page loses all color and alignment..
i have enable normal caching..which is the default setting i found..and enabled for 1 min cache time.

pls help with this...i cld probably have better speed if i cld enable this..can't i??

Stardog’s picture

I was getting errors as well, until I changed the permissions on the files/css directory. I set it to 777 and that seemed to fix it.

gurukripa’s picture

what is 777 setting and how do i do it?

eferraiuolo’s picture

I will have to try changing the security permissions to the files dir on my Windows 2003 box and see if that fixes the issue...

Stardog is referring to chmod the dir to 777 making Users, Groups, and Owner have full control over the dir and it's contents.

timb’s picture

Thanks ramoneur, I turned this on a production site just a minute ago, to find that the entire site just disappeared. Your advise was golden, "The only way to solve that is to change the "preprocess_css" variable in MySQL table to s:1:"0" and to load cron.php."

massimoi’s picture

I Confirm. This trick works for me too. Win 7 - XAMPP Lite 1.1.7

kslagboom’s picture

Version: 5.1 » 6.16

I can confirm this issue as well. Tested in to different drupal sites. XAMPP 1.7.1 / Win 7. XAMPP is 99% stock config. Issue happened when compress css was enabled. Method above fixed both of my sites.

mimohodom’s picture

thanks back to 2007, ramoneur specifically. However, I had to disable page compression as well

arhak’s picture

Issue tags: +Ancient

tag

damien tournoud’s picture

Category: bug » support
Status: Active » Closed (won't fix)
Issue tags: -Ancient

This issue cannot be reliably reproduced, but is probably linked with: #444228: Optimize CSS option causes php cgi to segfault in pcre function "match".

Requalifying as a support request, and removing the tag that makes no sense.

hermes_costell’s picture

Confirmed that this fix also worked for me - Win 7 running DAMP. For others looking for this you want to look in the 'variable' table for the preprocess_css value. i.e. SELECT * FROM `variable` where name = 'preprocess_css'