Page 1 of 1

[SOLVED] Can't edit content pages after upgrading to 1.11.6

Posted: Mon May 06, 2013 11:29 am
by Andrew Prior
Fatal error: Call to a member function TemplateId() on a non-object in /home/MyUserName/public_html/plugins/function.stylesheet.php on line 56
I get this error when I try to edit a content page. It was working OK in 1.10.3, and when I went to 1.11.3 and tested content editing etc it was still all ok.
But I am not able to edit now.

I use TinyMCE to edit, but find no difference if I go to microtiny.
I can open redirecting internal links OK, also News items, global content blocks.

The public site is displaying fine.

Any suggestions, anyone?

Re: Cannot edit any content pages after upgrading to 1.11.6

Posted: Mon May 06, 2013 11:33 am
by velden

Re: [SOLVED] Can't edit content pages after upgrading to 1.1

Posted: Mon May 06, 2013 11:39 am
by Andrew Prior
Got it! Used to that using old themes... didn't think about my own updates! Thanks mate.

Re: [SOLVED] Can't edit content pages after upgrading to 1.1

Posted: Tue May 07, 2013 10:53 am
by Andrew Prior
Otto, it should be {cms_stylesheet}. You just have {stylesheet}

Re: [SOLVED] Can't edit content pages after upgrading to 1.1

Posted: Tue May 07, 2013 9:22 pm
by Dr.CSS
a) Open the template of the theme;
b) Search for {stylesheet};
c) Replace {stylesheet} with {cms_stylesheet};
d) Save template;


Now that you've done the first part you need to do the second step...

e) Open style sheets and change image calls:
old url(uploads/folder/image.jpg)
new url([[root_url]]/uploads/folder/image.jpg)

or

url(../../uploads/folder/image.jpg)

So [[root_url]]/ or ../../ will/should fix the look...