[Solved] Moving domains

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
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

[Solved] Moving domains

Post by chillifish »

I'm moving a cmsms site from one host to another. In the past, I have found the simplest way is to back up the databases and download all the files, then put them on the new server and change the config file. The issue I have with this host is that when I launch the site, I get the following:
Warning: opendir(/services/webpages/n/o/my_domain.co.uk/public/my_domain/admin//lang) [function.opendir]: failed to open dir: No such file or directory in /services3/webpages/n/o/my_domain.co.uk/public/lib/translation.functions.php on line 88

Warning: closedir(): supplied argument is not a valid Directory resource in /services3/webpages/n/o/my_domain.co.uk/public/lib/translation.functions.php on line 94

Warning: opendir(/services/webpages/n/o/my_domain.co.uk/public/my_domain/admin//lang) [function.opendir]: failed to open dir: No such file or directory in /services3/webpages/n/o/my_domain.co.uk/public/lib/translation.functions.php on line 88

Warning: closedir(): supplied argument is not a valid Directory resource in /services3/webpages/n/o/my_domain.co.uk/public/lib/translation.functions.php on line 94

Warning: opendir(/services/webpages/n/o/my_domain.co.uk/public/my_domain/admin//lang) [function.opendir]: failed to open dir: No such file or directory in /services3/webpages/n/o/my_domain.co.uk/public/lib/translation.functions.php on line 88

Warning: closedir(): supplied argument is not a valid Directory resource in /services3/webpages/n/o/my_domain.co.uk/public/lib/translation.functions.php on line 94

Warning: opendir(/services/webpages/n/o/my_domain.co.uk/public/my_domain/admin//lang) [function.opendir]: failed to open dir: No such file or directory in /services3/webpages/n/o/northeggardoncarthouse.co.uk/public/lib/translation.functions.php on line 88

Warning: closedir(): supplied argument is not a valid Directory resource in /services3/webpages/n/o/my_domain.co.uk/public/lib/translation.functions.php on line 94

Fatal error: Class 'CmsRoute' not found in /services3/webpages/n/o/my_domain.co.uk/public/lib/classes/class.module.inc.php on line 495
The files are there and the document root is correct in the config file. However, the first directory should be services, not services3 as it is in the closedir(). Does anybody have any pointers on what I should be looking at?

Many thanks.
Last edited by chillifish on Wed Aug 31, 2011 4:33 pm, edited 1 time in total.
replytomk3

Re: Moving domains

Post by replytomk3 »

Been documented a thousand times. By me too.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Moving domains

Post by Wishbone »

PHP is saying that they don't exist.... You're saying that the missing files exist? (the entire path, not just relative to your public area)... If you have SSH access, 'ls' the path and see what you get.
replytomk3

Re: Moving domains

Post by replytomk3 »

Config paths incorrect

1) Two slashes after /admin//

2) This error message is giving you the current root paths. What your config.php has is old paths.
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

Re: Moving domains

Post by chillifish »

I noticed that double slash thing, but it's not something I've added. I also, saw something somewhere that documented a similar issue and said rather cryptically that looking at the output would give the answer. I've noticed the double slash, but I just can't work out where it's coming from.

If you've documented it a thousand times, would you mind pointing me to it? It's not like I didn't search before I posted.
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

Re: Moving domains

Post by chillifish »

Not to worry, I started from scratch and it seems to work fine now. I've no idea what I was doing wrong as I seemed to do exactly the same thing when reinstalling.
replytomk3

Re: Moving domains

Post by replytomk3 »

chillifish wrote:said rather cryptically that looking at the output would give the answer
This error message is giving you the current root paths. What your config.php has is old paths.

Also, clear cache after every config.php path change.
Locked

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