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
Comment #1
m3avrck commentedWow 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?
Comment #2
eferraiuolo commentedYes 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.
Comment #3
ramoneur commentedI 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
Comment #4
gurukripa commentedERROR
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 :)
Comment #5
gurukripa commentedsorry 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
Comment #6
gurukripa commentedThe 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??
Comment #7
Stardog commentedI 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.
Comment #8
gurukripa commentedwhat is 777 setting and how do i do it?
Comment #9
eferraiuolo commentedI 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.
Comment #10
timb commentedThanks 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."
Comment #11
massimoi commentedI Confirm. This trick works for me too. Win 7 - XAMPP Lite 1.1.7
Comment #12
kslagboom commentedI 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.
Comment #13
mimohodom commentedthanks back to 2007, ramoneur specifically. However, I had to disable page compression as well
Comment #14
arhak commentedtag
Comment #15
damien tournoud commentedThis 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.
Comment #16
hermes_costell commentedConfirmed 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'