Page 1 of 1

[SOLVED] Upgrade causing some templates to show...weird

Posted: Wed Oct 16, 2013 5:35 am
by fearmydesign
Hello everyone... I have been battling with this one for about 7.5 hours and at an extreme loss. I have tried so many things that I will do my best to describe and explain everything possible :-\

MY CMSMS INSTALLATION:
Version 1.11.9 (upgrade from 1.10.3)
I upgraded ALL modules before upgrading.
Once upgraded, updated more modules.
PHP: 5.3.24
MySQL: 5.0.96

PROBLEM
For some weird reason when I click on 'some' pages to edit them, I just get a blank body (see my attached image please). But when I click on other pages, they work. No particular pattern I can figure out. Simply some work and others don't.

The other problem is that I can't edit my templates through admin. For example, I was trying to change {stylesheet} to the new {cms_stylesheet} and when trying to click 'Apply' it doesn't do anything! ??? Then, when I click 'Submit' it goes to a blank screen :-\ and gives me this error:

Code: Select all

<b>Fatal error</b>:  Call to a member function TemplateId() on a non-object in <b>/home/content/59/11964359/html/plugins/function.stylesheet.php</b> on line <b>56</b><br />
So what I did to get around this, was to actually go into PHPmyAdmin, and went to cms_templates table and only modified {stylesheet} to {cms_stylesheet} for each of the templates. I went back to admin and nothing - same errors.

CACHE
Yes, I tried clearing cache before/after/between... and even cleared tmp/templates_c manually. I even updated page hierarchy positions + routes + optimize tables + repair tables. Still nothing.
My stylesheets work fine. The only thing I had to do there was update the [[root_url]] for images.

MODULES
I tried deactivating all modules, and reactivating them. I didn't want to 'uninstall' anything because I don't think it's related to any module in particular; at least I can't tell from the error messages.

RESEARCH
Yes, I read multiple threads... some even twice... some I had to translate. The one common problem I found searching for that particular error was changing {stylesheet} to {cms_stylesheet}. But I fixed this and still didn't work. I even saved the multiple threads I found so I could refer back to them as I worked through the errors.

BACKGROUND ON SITE
I think originally I started this site with CMSMS version 1.8 a few years ago. Then upgraded to 1.9, then 1.10, and now 1.11. Is it possible that something is out of date in the database?... or something missing in the database?

UPGRADE from 1.10 to 1.11
The upgrade went smooth like always. The Checksum file test was good... All steps smooth, no issues, no warnings :-\

SYSTEM VERIFICATION
I also performed a system validation under 'System Verification' and the only files missing message I got was this:

Code: Select all

2 Files failed md5sum check:
/tmp/cache/index.html
/tmp/templates_c/index.html
I don't know how important these are, BUT when I look for these through FTP they are there!!! :-\

Can anyone please help try/test other stuff... I know there is just something I'm missing

By the way the site seems to be working: http://www.wellmangchi.com/
But as mentioned I can't edit page templates or page content :-\

Re: Upgrade causing some templates to show..extremely weird

Posted: Wed Oct 16, 2013 6:29 am
by Rolf
You already did a lot I see, perhaps these might help...

- clear browser cache (try other browser)
- check all UDTs for invalid PHP code
- are the third-party modules okay for 1.11+ Can you give us a list (CMSMS System Information).
- also for plugins/tags

grtz. Rolf

Re: Upgrade causing some templates to show..extremely weird

Posted: Wed Oct 16, 2013 8:42 am
by Jo Morg
I remember that some upgrades had this issue... so, in addition try: http://forum.cmsmadesimple.org/viewtopi ... hp#p291727 , particularly deleting the files mentioned there.

Re: Upgrade causing some templates to show..extremely weird

Posted: Wed Oct 16, 2013 2:36 pm
by fearmydesign
;) Thank you guys for your responses. Jo Morg, that article did it. I removed these files manually through FTP.

remove file CMS_ROOT/plugins/function.stylesheet.php
remove file CMS_ROOT/stylesheet.php

Rolf, I also took your advice and jumped on a different browser (IE). I was getting errors but I cleared the cache once more, and now everything works fine.

Thank you both... ::)

Re: [SOLVED] Upgrade causing some templates to show...weird

Posted: Wed Oct 16, 2013 4:16 pm
by Jo Morg
Actually, I have to say: great job on your post. It was by being so thorough a post that I remembered that one as a possible solution. ;)

Re: [SOLVED] Upgrade causing some templates to show...weird

Posted: Wed Oct 16, 2013 4:22 pm
by fearmydesign
Jo Morg wrote:Actually, I have to say: great job on your post. It was by being so thorough a post that I remembered that one as a possible solution. ;)
Thank you again guys, and thank you so much for taking the time to read it. I know it was a handful, but I appreciate your time.

Cheers! ;)

Re: [SOLVED] Upgrade causing some templates to show...weird

Posted: Wed Oct 16, 2013 5:20 pm
by calguy1000
Jo Morg wrote:Actually, I have to say: great job on your post. It was by being so thorough a post that I remembered that one as a possible solution. ;)
I second that... too bad many people don't give such detailed descriptions of their problems... and many people therefore don't get timely, or meaningful answers... or answers at all.