Page 1 of 1

[SOLVED] Problems migrating old CMSMS versions to new server

Posted: Thu May 09, 2013 3:28 pm
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 :)

Re: Problems migrating older CMSMS versions to new server.

Posted: Thu May 09, 2013 3:54 pm
by Wishbone
Point us to the site?

Re: Problems migrating older CMSMS versions to new server.

Posted: Thu May 09, 2013 4:13 pm
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

Re: Problems migrating older CMSMS versions to new server.

Posted: Thu May 09, 2013 4:31 pm
by Wishbone
I see images on all the pages. The home page has a blank spot, but it's flash content.

Re: Problems migrating older CMSMS versions to new server.

Posted: Thu May 09, 2013 4:44 pm
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

Re: Problems migrating older CMSMS versions to new server.

Posted: Thu May 09, 2013 6:40 pm
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.

Re: Problems migrating older CMSMS versions to new server.

Posted: Thu May 09, 2013 7:25 pm
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 ...

Re: Problems migrating older CMSMS versions to new server.

Posted: Fri May 10, 2013 10:01 am
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

Re: Problems migrating older CMSMS versions to new server.

Posted: Fri May 10, 2013 2:09 pm
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

Re: Problems migrating older CMSMS versions to new server.

Posted: Fri May 10, 2013 5:58 pm
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/

Re: Problems migrating older CMSMS versions to new server.

Posted: Sat May 11, 2013 9:25 am
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.

Re: Problems migrating older CMSMS versions to new server.

Posted: Wed May 15, 2013 8:24 pm
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