Fatal Error in function.stylesheet [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
mechatech
Forum Members
Forum Members
Posts: 51
Joined: Thu Oct 25, 2007 5:49 pm

Fatal Error in function.stylesheet [solved]

Post by mechatech »

Just upgraded from 1.7.1 to 1.9.2 then 1.9.4.2 then 1.10.2 All was well, then went to 1.11.9

Now when i try to create a new page, or when i click to edit the home page I get:

Fatal error: Call to a member function TemplateId() on a non-object in /home/quiltbra/public_html/plugins/function.stylesheet.php on line 56

I don't get the error when i click to edit any other page. All the pages are working on the site.

When i delete line 56, the error goes away but then all the pages stop working. Not that I really expected that to work anyway haha.

Thanks
Last edited by mechatech on Wed Dec 04, 2013 8:09 pm, edited 1 time in total.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Fatal Error in function.stylesheet after upgrade to 1.11

Post by staartmees »

http://themes.cmsmadesimple.org/

Warning Notice:

some themes will give a smarty error related to {stylesheet}, this plugin has been removed from CMSMS distributions. use {cms_stylesheet} instead.

a) Open the template of the theme;
b) Search for {stylesheet};
c) Replace {stylesheet} with {cms_stylesheet};
d) Save template;
e) Open style sheets and change image calls:
old url(uploads/folder/image.jpg)
new url([[root_url]]/uploads/folder/image.jpg)
mechatech
Forum Members
Forum Members
Posts: 51
Joined: Thu Oct 25, 2007 5:49 pm

Re: Fatal Error in function.stylesheet after upgrade to 1.11

Post by mechatech »

Thanks, that fixed the problem.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Fatal Error in function.stylesheet after upgrade to 1.11

Post by staartmees »

please add [solved] to the title
Locked

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