Page 1 of 1

Fatal Error in function.stylesheet [solved]

Posted: Fri Nov 01, 2013 4:35 pm
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

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

Posted: Fri Nov 01, 2013 4:43 pm
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)

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

Posted: Fri Nov 01, 2013 5:24 pm
by mechatech
Thanks, that fixed the problem.

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

Posted: Fri Nov 01, 2013 6:30 pm
by staartmees
please add [solved] to the title