Page 1 of 1

[Solved] Moving domains

Posted: Sat Aug 20, 2011 2:23 pm
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.

Re: Moving domains

Posted: Wed Aug 24, 2011 10:54 pm
by replytomk3
Been documented a thousand times. By me too.

Re: Moving domains

Posted: Thu Aug 25, 2011 12:23 am
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.

Re: Moving domains

Posted: Thu Aug 25, 2011 1:17 am
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.

Re: Moving domains

Posted: Fri Aug 26, 2011 7:22 pm
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.

Re: Moving domains

Posted: Sat Aug 27, 2011 11:49 am
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.

Re: Moving domains

Posted: Sat Aug 27, 2011 12:40 pm
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.