Upgrade prevents frontend style sheets loading [Solved]

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
crankshaft
Forum Members
Forum Members
Posts: 57
Joined: Sun Mar 25, 2007 7:42 am

Upgrade prevents frontend style sheets loading [Solved]

Post by crankshaft »

I just upgraded to the latest version on php 5.3.2, the admin page loads fine, but the frontend is not loading any style sheets and examining this with FIREBUG I see that every attempt at loading a stylesheet with stylesheet.php gets a 500 error from the server.

Code: Select all

"NetworkError: 500 Internal Server Error - http://www.xx.com/stylesheet.php?cssid=53&mediatype=screen"
styles...=screen
"NetworkError: 500 Internal Server Error - http://www.xx.com/stylesheet.php?cssid=39&mediatype=screen"
styles...=screen
"NetworkError: 500 Internal Server Error - http://www.xx.com/stylesheet.php?cssid=31&mediatype=screen"
styles...=screen
"NetworkError: 500 Internal Server Error - http://www.xx.com/stylesheet.php?cssid=34"
styles...ssid=34
"NetworkError: 500 Internal Server Error - http://www.xx.com/stylesheet.php?cssid=30&mediatype=print"
styles...e=print
"NetworkError: 500 Internal Server Error - http://www.xx.com/stylesheet.php?cssid=52&mediatype=all"
styles...ype=all
"NetworkError: 500 Internal Server Error - http://www.xx.com/stylesheet.php?cssid=55&mediatype=all"
To try and debug the cause, I have worked through the stylesheet.php file adding an echo "xxx" below each line and it get's echoed until line 96:

Code: Select all

load_adodb();
adding echo "xxx" below line 96 does not get echoed so I suspect that it is something to do with this function.

Turning on debugging does not give me any info which appears to point to the root of this problem, and yes php5-adodb is installed and loaded.

Any suggestions ??


UPDATE
=====

Just checking the error logs I see the following:

Code: Select all

mod_fcgid: stderr: PHP Fatal error:  Call to undefined method CmsObject::get_instance() in /home/xx/public_html/cms/lib/misc.functions.php on line 190
SOLUTION
======
set {cms_stylesheet} in templte instead of {stylesheet}

could this be done in the sql db update script during the update ??
Locked

Return to “[locked] Installation, Setup and Upgrade”