Page 1 of 2
Problems after updating from 1.1 to 1.4.1
Posted: Tue Oct 28, 2008 6:11 am
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
Re: Problems after updating from 1.1 to 1.4.1
Posted: Tue Oct 28, 2008 8:20 am
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
Re: Problems after updating from 1.1 to 1.4.1
Posted: Tue Oct 28, 2008 8:47 am
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.
Re: Problems after updating from 1.1 to 1.4.1
Posted: Tue Oct 28, 2008 9:01 am
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
Re: Problems after updating from 1.1 to 1.4.1
Posted: Tue Oct 28, 2008 11:56 am
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".
Re: Problems after updating from 1.1 to 1.4.1
Posted: Tue Oct 28, 2008 12:14 pm
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
Re: Problems after updating from 1.1 to 1.4.1
Posted: Tue Oct 28, 2008 12:31 pm
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.
Re: Problems after updating from 1.1 to 1.4.1
Posted: Tue Oct 28, 2008 4:52 pm
by Pierre M.
Cracked ? May I suggest "
recovering from an exploit" ?
I hope you have good database backups.
Pierre
Re: Problems after updating from 1.1 to 1.4.1
Posted: Tue Oct 28, 2008 5:24 pm
by dapam
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.
Re: Problems after updating from 1.1 to 1.4.1
Posted: Wed Oct 29, 2008 6:21 pm
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.
Re: Problems after updating from 1.1 to 1.4.1
Posted: Wed Oct 29, 2008 7:08 pm
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...
Re: Problems after updating from 1.1 to 1.4.1
Posted: Thu Oct 30, 2008 10:50 am
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'}
.
Re: Problems after updating from 1.1 to 1.4.1
Posted: Thu Oct 30, 2008 11:30 am
by alby
dapam wrote:
why isn't its children seen on menu?
with item to select that list of pages ONLY
Alby
Re: Problems after updating from 1.1 to 1.4.1
Posted: Thu Oct 30, 2008 3:28 pm
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.
Re: Problems after updating from 1.1 to 1.4.1
Posted: Fri Oct 31, 2008 3:47 pm
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?