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

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
Andrew Prior
Forum Members
Forum Members
Posts: 247
Joined: Sun Oct 28, 2007 4:14 am

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

Post 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?
Last edited by Andrew Prior on Mon May 06, 2013 11:38 am, edited 1 time in total.
Andrew Prior
Forum Members
Forum Members
Posts: 247
Joined: Sun Oct 28, 2007 4:14 am

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

Post by Andrew Prior »

Got it! Used to that using old themes... didn't think about my own updates! Thanks mate.
Andrew Prior
Forum Members
Forum Members
Posts: 247
Joined: Sun Oct 28, 2007 4:14 am

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

Post by Andrew Prior »

Otto, it should be {cms_stylesheet}. You just have {stylesheet}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
Locked

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