Problems after updating from 1.1 to 1.4.1

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Problems after updating from 1.1 to 1.4.1

Post by dapam »

Hello!

I'm quite newbie with CMSMS, so please bear me. I've just got a project to update CMSMS from v1.1 to v1.4.1. The main reason for this is, that the site got hacked pretty badly because of old version of CMSMS. I'm using MySQL 5.0 and I'm not sure about PHP version (installation informed that version was fine).

All the files from host had to be deleted and only backuped db could be used. I've almost got everything working (only needed to copy images, javascripts etc. to right folders), but I have problems with menu. There is an own menu template (database template), that templates are using for example like this:  {menu template='uniadmmenu' collapse='1'  includeprefix="home,why-finland"}. This is creating errors "Fatal error: Call to a member function Alias() on a non-object in /var/www/vhosts/universityadmissions.fi/httpdocs/modules/MenuManager/MenuManager.module.php on line 154". If I remove "includeprefix...", menu is working, but it is showing all the pages (content) on menu. Those pages / content aliases  in "includeprefix..." are right, so that shouldn't be the problem. If you wan't to see the site, it is www.universityadmissions.fi/index.php
Last edited by dapam on Tue Oct 28, 2008 6:23 am, edited 1 time in total.
alby

Re: Problems after updating from 1.1 to 1.4.1

Post by alby »

- Run System Verification in Admin Panel and checking for missing/broke file
- Remove lib and modules/MenuManager folders and re-uploads them

Alby
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Re: Problems after updating from 1.1 to 1.4.1

Post by dapam »

alby wrote: - Run System Verification in Admin Panel and checking for missing/broke file
- Remove lib and modules/MenuManager folders and re-uploads them

Alby
Just tried, no help. Something else, that I could try.
alby

Re: Problems after updating from 1.1 to 1.4.1

Post by alby »

dapam wrote:
alby wrote: - Run System Verification in Admin Panel and checking for missing/broke file
- Remove lib and modules/MenuManager folders and re-uploads them
Just tried, no help. Something else, that I could try.
System Verification is all ok?
Active debug in config.php and look for other info/errors and in your error server logs

Alby
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Re: Problems after updating from 1.1 to 1.4.1

Post by dapam »

alby wrote:
dapam wrote:
alby wrote: - Run System Verification in Admin Panel and checking for missing/broke file
- Remove lib and modules/MenuManager folders and re-uploads them
Just tried, no help. Something else, that I could try.
System Verification is all ok?
Active debug in config.php and look for other info/errors and in your error server logs

Alby
In system verification "This function will compare the checksums found in the uploaded file..." To what uploaded file should I compare my system against? I created checksum.dat file from my system when it was installed yesterday evening, so should I compare it against that?

Also tried to debug, put I can't get it to write any debug messages, if I have "{menu template='uniadmmenu' collapse='1'  includeprefix="somecontent1, somecontent2}". It will write debug messages, if I remove the "includeprefix".
Last edited by dapam on Tue Oct 28, 2008 12:13 pm, edited 1 time in total.
alby

Re: Problems after updating from 1.1 to 1.4.1

Post by alby »

dapam wrote: In system verification "This function will compare the checksums found in the uploaded file..." To what uploaded file should I compare my system against? I created checksum.dat file from my system when it was installed yesterday evening, so should I compare it against that?
No, in download page there are checksum.dat
Download and upload checksum of your distribution (full or base)

Alby
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Re: Problems after updating from 1.1 to 1.4.1

Post by dapam »

alby wrote:
dapam wrote: In system verification "This function will compare the checksums found in the uploaded file..." To what uploaded file should I compare my system against? I created checksum.dat file from my system when it was installed yesterday evening, so should I compare it against that?
No, in download page there are checksum.dat
Download and upload checksum of your distribution (full or base)

Alby
Did that and everything seems fine.
Pierre M.

Re: Problems after updating from 1.1 to 1.4.1

Post by Pierre M. »

Cracked ? May I suggest "recovering from an exploit" ?
I hope you have good database backups.

Pierre
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Re: Problems after updating from 1.1 to 1.4.1

Post by dapam »

Pierre M. wrote: Cracked ? May I suggest "recovering from an exploit" ?
I hope you have good database backups.

Pierre
Yep, cracked. Actually I did what you suggested in that topic. The host was cleaned throughly and only database backup could be used. Luckily the backup is good, but the problem that this topic concerns seems to be something else.
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Re: Problems after updating from 1.1 to 1.4.1

Post by dapam »

For example, if I have this row in template: {menu template='uniadmmenu' collapse='1' includeprefix='home'}, what db queries are made? Is the page / content found by query like select * from cms_content where content_alias = 'home'? That query found the "content" from db, but somehow the CMSMS doesn't found anything. Please, if someone have any suggestions, I'm happy to try them.
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Re: Problems after updating from 1.1 to 1.4.1

Post by dapam »

By the way, I got it working using parameter items, strange. This still isn't nice, because I have to go through all the templates and replace the prefixes with whole aliases.

Edit: doesn't work correctly, child nodes aren't shown...
Last edited by dapam on Wed Oct 29, 2008 7:26 pm, edited 1 time in total.
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Re: Problems after updating from 1.1 to 1.4.1

Post by dapam »

Ok, the remaining problem is this. If I have in my template

Code: Select all

 {menu template='uniadmmenu' collapse='1' items='home,how-to-apply'}
and and I'm on the how-to-apply page, why isn't its children seen on menu? This worked fine when I used

Code: Select all

{menu template='uniadmmenu' collapse='1' includeprefix='home,how-to-apply'}
.
alby

Re: Problems after updating from 1.1 to 1.4.1

Post by alby »

dapam wrote: why isn't its children seen on menu?
with item to select that list of pages ONLY

Alby
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Re: Problems after updating from 1.1 to 1.4.1

Post by dapam »

alby wrote:
dapam wrote: why isn't its children seen on menu?
with item to select that list of pages ONLY

Alby
Ok, got that. Now the problem is, if I put also child pages into items list, they are seen on same menu level as parents.
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Re: Problems after updating from 1.1 to 1.4.1

Post by dapam »

Ok, tried to downgrade from 1.4.1 to 1.1 to see, if there some kind of compatibility issues with 1.4.1 and old db content. I got everything up and running and went to check the site, but the menus were empty. I went to check Layout -> Menu Manager and got this error: Call to a member function GetFriendlyName() on a non-object in /var/www/vhosts/universityadmissions.fi/httpdocs/admin/moduleinterface.php on line 120. Remember, that with version 1.4 I could go and edit menu templates, no error there. So what's the case here?
Post Reply

Return to “CMSMS Core”