Stylesheet.php throwing internal server errors (500)
Posted: Tue Oct 28, 2008 12:36 am
I thought I had this problem solved earlier, but no.
I'm running CMS 1.4.1 with no modules installed other than those included in the default distribution package. About a month ago, I started noticing core dumps accumulating on my Site5 server.
Upon closer examination of the error logs, I found these core dumps associated with error log entries like these three examples:
74.229.183.17 - - [21/Oct/2008:19:08:23 -0500] "GET /stylesheet.php?cssid=42&mediatype=screen HTTP/1.1" 500 - "http://www.carolinagodiva.org/" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3"
74.229.183.17 - - [21/Oct/2008:19:08:23 -0500] "GET /stylesheet.php?cssid=45&mediatype=screen HTTP/1.1" 500 - "http://www.carolinagodiva.org/" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3"
99.194.1.238 - - [22/Oct/2008:09:00:12 -0500] "GET /stylesheet.php?cssid=43&mediatype=screen HTTP/1.1" 500 - "http://www.carolinagodiva.org/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.30 Safari/525.13"
In other words, the error is always associated with a GET /stylesheet.php . . . .
The cssid identifies the css sheet stored in the site's mySql database, but is isn't always the same cssid number that causes the error, and the same css files are more often than not accessed without problem at other times.
Often, but now always, the error appears in nearly simultaneous pairs, as with the first two examples above.
I was originally running the site under version 4.x of php. Changing to version 5.x didn't fix the problem of core dumps (though the size of the dumps is smaller).
A reinstall of CMSMadesimple 1.4.1 did not fix the problem.
A check of the css in each of the stylesheets associated with an error did not find any problems I could see with that code.
Here's the system information outout:
----------------------------------------------
Cms Version: 1.4.1
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 0.4.1
* MenuManager: 1.5.1
* ModuleManager: 1.2.1
* News: 2.8.2
* nuSOAP: 1.0.1
* Printing: 0.2.5
* Search: 1.5.1
* ThemeManager: 1.0.8
* TinyMCE: 2.4.5
* SystemInfo: 0.1.2
Config Information:
* php_memory_limit:
* process_whole_template: true
* max_upload_size: 2000000
* default_upload_permission: 664
* assume_mod_rewrite: false
* page_extension:
* internal_pretty_urls: false
* use_hierarchy: false
Php Information:
* safe_mode: Off (False)
* phpversion: 5.2.1
* memory_limit: 32M
* max_execution_time: 30
* gd_version: 2
* session_save_path: No check because OS path
Server Information:
* Server Api: cgi
* Server Db Type: MySQL (mysql)
* Server Db Version: 4.1.22
----------------------------------------------
Curiously, the php memory limit field is blank, but phpinfo() shows it to be 32m. There is a ! flag by Maximum Execution Time = 30, but I'm not sure if that is really the issue.
Any rate. I'm stumped. Help! I otherwise really like CMSMadeSimple, being a refugee from Mambo ...
pjb@godiva
I'm running CMS 1.4.1 with no modules installed other than those included in the default distribution package. About a month ago, I started noticing core dumps accumulating on my Site5 server.
Upon closer examination of the error logs, I found these core dumps associated with error log entries like these three examples:
74.229.183.17 - - [21/Oct/2008:19:08:23 -0500] "GET /stylesheet.php?cssid=42&mediatype=screen HTTP/1.1" 500 - "http://www.carolinagodiva.org/" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3"
74.229.183.17 - - [21/Oct/2008:19:08:23 -0500] "GET /stylesheet.php?cssid=45&mediatype=screen HTTP/1.1" 500 - "http://www.carolinagodiva.org/" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3"
99.194.1.238 - - [22/Oct/2008:09:00:12 -0500] "GET /stylesheet.php?cssid=43&mediatype=screen HTTP/1.1" 500 - "http://www.carolinagodiva.org/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.30 Safari/525.13"
In other words, the error is always associated with a GET /stylesheet.php . . . .
The cssid identifies the css sheet stored in the site's mySql database, but is isn't always the same cssid number that causes the error, and the same css files are more often than not accessed without problem at other times.
Often, but now always, the error appears in nearly simultaneous pairs, as with the first two examples above.
I was originally running the site under version 4.x of php. Changing to version 5.x didn't fix the problem of core dumps (though the size of the dumps is smaller).
A reinstall of CMSMadesimple 1.4.1 did not fix the problem.
A check of the css in each of the stylesheets associated with an error did not find any problems I could see with that code.
Here's the system information outout:
----------------------------------------------
Cms Version: 1.4.1
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 0.4.1
* MenuManager: 1.5.1
* ModuleManager: 1.2.1
* News: 2.8.2
* nuSOAP: 1.0.1
* Printing: 0.2.5
* Search: 1.5.1
* ThemeManager: 1.0.8
* TinyMCE: 2.4.5
* SystemInfo: 0.1.2
Config Information:
* php_memory_limit:
* process_whole_template: true
* max_upload_size: 2000000
* default_upload_permission: 664
* assume_mod_rewrite: false
* page_extension:
* internal_pretty_urls: false
* use_hierarchy: false
Php Information:
* safe_mode: Off (False)
* phpversion: 5.2.1
* memory_limit: 32M
* max_execution_time: 30
* gd_version: 2
* session_save_path: No check because OS path
Server Information:
* Server Api: cgi
* Server Db Type: MySQL (mysql)
* Server Db Version: 4.1.22
----------------------------------------------
Curiously, the php memory limit field is blank, but phpinfo() shows it to be 32m. There is a ! flag by Maximum Execution Time = 30, but I'm not sure if that is really the issue.
Any rate. I'm stumped. Help! I otherwise really like CMSMadeSimple, being a refugee from Mambo ...
pjb@godiva