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

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
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

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

Post 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 :-\
Attachments
When I click to edit page content
When I click to edit page content
Last edited by fearmydesign on Wed Oct 16, 2013 2:37 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

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

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

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

Post 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... ::)
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

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

Post 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. ;)
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

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

Post 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! ;)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

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