[SOLVED] Problems migrating old CMSMS versions to new server

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
AngelEyes
Forum Members
Forum Members
Posts: 23
Joined: Tue Nov 20, 2007 3:42 pm

[SOLVED] Problems migrating old CMSMS versions to new server

Post by AngelEyes »

Hi,

I have a few websites running older versions of CMSMS, 1.3 & 1.4 that I want to move to my new server.

My new server is running WHM/cPanel:
Apache 2.2.24
PHP 5.4.14
MySQL 5.1.67-cll

The problem I have is when the site is copied over none of the images show up except via CSS and there are loads of errors.

I have tried incremental backup of each CMSMS version, most errors disappear by the time I get to 1.9. However the images remain missing.

I have also tried updating some of the modules (cataloger, contentaliases etc.) as I upgraded which sometimes fixed errors caused by upgrading but nothing I have tried (and I have tried a lot of combinations) seems to work.

Example errors:

Deprecated: Assigning the return value of new by reference is deprecated in /home/l######/public_html/lib/classes/class.moduleloader.inc.php on line 69

Strict Standards: Declaration of Album::GetHelp() should be compatible with CMSModule::GetHelp($lang = 'en_US') in /home/######/public_html/modules/Album/classes/module/class.Album.php on line 964

My assumption is something on my new server is not compatible with this older version of CMSMS, although a developer friend managed to get it running locally on his machine using PHP 5.4.10 but i have not been able to confirm this.

I am a bit of a nube with System admin so please speak slowly if I need to adjust anything on my server.

I have spent days banging my head against a wall on this so really appreciate any help.

Thanks very much.

Adam :)
Last edited by AngelEyes on Wed May 15, 2013 8:25 pm, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Problems migrating older CMSMS versions to new server.

Post by Wishbone »

Point us to the site?
AngelEyes
Forum Members
Forum Members
Posts: 23
Joined: Tue Nov 20, 2007 3:42 pm

Re: Problems migrating older CMSMS versions to new server.

Post by AngelEyes »

Here is the temporary URL: http://91.109.2.168/~luxuryho/

We managed to get rid of the errors with some tweaks to the config.php but still unable to view the images.

Thanks,

Adam
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Problems migrating older CMSMS versions to new server.

Post by Wishbone »

I see images on all the pages. The home page has a blank spot, but it's flash content.
AngelEyes
Forum Members
Forum Members
Posts: 23
Joined: Tue Nov 20, 2007 3:42 pm

Re: Problems migrating older CMSMS versions to new server.

Post by AngelEyes »

Wishbone wrote:I see images on all the pages. The home page has a blank spot, but it's flash content.
Hi, as soon as you navigate off the home page it defers to the live site. Try this in your local hosts file to see what I mean as it directs you at the new server.

91.109.2.168 www.luxury-hotels-villas.com
91.109.2.168 luxury-hotels-villas.com

Thanks,

Adam
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Problems migrating older CMSMS versions to new server.

Post by velden »

'HTTP/1.1 500 Internal Server Error' on image request via Cataloger.Image.php (Cataloger module)

Example url:
http://luxury-hotels-villas.com/modules ... g&ac=45010

I don't know the module, but there you've a starting point.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problems migrating older CMSMS versions to new server.

Post by Dr.CSS »

Everything in the <head> of the 91.109.2.168/~luxuryho/ site points to the old site, is this hard coded in the template, even the <base href ...
AngelEyes
Forum Members
Forum Members
Posts: 23
Joined: Tue Nov 20, 2007 3:42 pm

Re: Problems migrating older CMSMS versions to new server.

Post by AngelEyes »

Dr.CSS wrote:Everything in the <head> of the 91.109.2.168/~luxuryho/ site points to the old site, is this hard coded in the template, even the <base href ...
All the paths are relative so I assume it gets the URLs from the config.php which does default to the old site. However my understanding is that when changing your local hosts file you should have the config.php setup exactly as if the site was live on the new server?

Thanks,

Adam
AngelEyes
Forum Members
Forum Members
Posts: 23
Joined: Tue Nov 20, 2007 3:42 pm

Re: Problems migrating older CMSMS versions to new server.

Post by AngelEyes »

velden wrote:'HTTP/1.1 500 Internal Server Error' on image request via Cataloger.Image.php (Cataloger module)

Example url:
http://luxury-hotels-villas.com/modules ... g&ac=45010

I don't know the module, but there you've a starting point.
Thanks.

The fact it works fine with he same settings on an earlier version of Apache makes me wonder if that is the cause? Any ideas if I am barking up the wrong tree?

I guess there must be some difference in the server causing this.

Adam
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problems migrating older CMSMS versions to new server.

Post by Dr.CSS »

All URLs/paths in the config.php need to point to the site it is in not to the other site else it has no idea it is in a new server, poor thing is confused about where it is...

Not all servers use the same folder paths...

/var/sitename/public_html/
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Problems migrating older CMSMS versions to new server.

Post by velden »

I don't think dr.Css is pointing in the right direction.

Personally I would try to (after making backup!) upgrade cmsms on the OLD server as long as possible.

First upgrade modules then cmsms. Read this too: http://docs.cmsmadesimple.org/upgrading and pay attention to 'Steps for Upgrading from an Old Version'.

Optionally create new backup after each successfull upgrade.

If upgrading further seems not possible because the requirements are not met on old server, then migrate to new server (via last successful-upgrade-backup).
Of course, after migration you need to check paths in config.php (though latest cmsms doesn't need path(s) configured in config.php).

If, after upgrading to all latest versions, you still get warnings (not errors) by PHP, disable those via config.php or .htaccess.
AngelEyes
Forum Members
Forum Members
Posts: 23
Joined: Tue Nov 20, 2007 3:42 pm

Re: Problems migrating older CMSMS versions to new server.

Post by AngelEyes »

Thanks for all the help people.

It turns out the issues was the temporary URLs on my server. When I allocated a spare domain name and used than in the config.php everything was golden.

I just need the last 2 weeks of my life back now :)

Adam
Locked

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