Problems after updating from 1.1 to 1.4.1
Problems after updating from 1.1 to 1.4.1
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
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.
Re: Problems after updating from 1.1 to 1.4.1
- Run System Verification in Admin Panel and checking for missing/broke file
- Remove lib and modules/MenuManager folders and re-uploads them
Alby
- Remove lib and modules/MenuManager folders and re-uploads them
Alby
Re: Problems after updating from 1.1 to 1.4.1
Just tried, no help. Something else, that I could try.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
Re: Problems after updating from 1.1 to 1.4.1
System Verification is all ok?dapam wrote:Just tried, no help. Something else, that I could try.alby wrote: - Run System Verification in Admin Panel and checking for missing/broke file
- Remove lib and modules/MenuManager folders and re-uploads them
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
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?alby wrote:System Verification is all ok?dapam wrote:Just tried, no help. Something else, that I could try.alby wrote: - Run System Verification in Admin Panel and checking for missing/broke file
- Remove lib and modules/MenuManager folders and re-uploads them
Active debug in config.php and look for other info/errors and in your error server logs
Alby
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.
Re: Problems after updating from 1.1 to 1.4.1
No, in download page there are checksum.datdapam 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?
Download and upload checksum of your distribution (full or base)
Alby
Re: Problems after updating from 1.1 to 1.4.1
Did that and everything seems fine.alby wrote:No, in download page there are checksum.datdapam 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?
Download and upload checksum of your distribution (full or base)
Alby
Re: Problems after updating from 1.1 to 1.4.1
Cracked ? May I suggest "recovering from an exploit" ?
I hope you have good database backups.
Pierre
I hope you have good database backups.
Pierre
Re: Problems after updating from 1.1 to 1.4.1
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.Pierre M. wrote: 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
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
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...
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.
Re: Problems after updating from 1.1 to 1.4.1
Ok, the remaining problem is this. If I have in my template 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' items='home,how-to-apply'}
Code: Select all
{menu template='uniadmmenu' collapse='1' includeprefix='home,how-to-apply'}
Re: Problems after updating from 1.1 to 1.4.1
with item to select that list of pages ONLYdapam wrote: why isn't its children seen on menu?
Alby
Re: Problems after updating from 1.1 to 1.4.1
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.alby wrote:with item to select that list of pages ONLYdapam wrote: why isn't its children seen on menu?
Alby
Re: Problems after updating from 1.1 to 1.4.1
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?