I have an install of a Drupal 6 site, that is working great. I'm in the midst of switching hosts to Company B, but still want to keep the domain registered from my old company, Company A.
I copied all of the files over to Company B, made the domain an add-on domain, copied the database, changed the settings.php file to point to the new database, then changed the nameservers to point to my new hosting company.
When the DNS change propagated through, the site came up, so it was hitting the correct folder, and the database was obviously working as well, but I got a spate of error messages (which I will include at the end) and the theme was completely non-existent. I hurriedly changed the nameservers back, as this is a production site, and am now trying to figure out how it could have went wrong with an exact clone of all of the files. . .
The error messages I received:
* warning: array_map() [function.array-map]: Argument #2 should be an array in /home/sitename/public_html/public_html/modules/system/system.module on line 1020.
* warning: array_keys() expects parameter 1 to be array, null given in /home/sitename/public_html/public_html/includes/theme.inc on line 1832.
* warning: Invalid argument supplied for foreach() in /home/sitename/public_html/public_html/includes/theme.inc on line 1832.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /home/sitename/public_html/public_html/modules/system/system.module on line 1020.
* warning: array_keys() expects parameter 1 to be array, null given in /home/sitename/public_html/public_html/includes/theme.inc on line 1832.
* warning: Invalid argument supplied for foreach() in /home/sitename/public_html/public_html/includes/theme.inc on line 1832.
(I'm aware that the two public_html's are a little odd, it has to do with different naming conventions between the two hosts. It does point to the same folder this way.)
Any ideas what I can do to get this site to work identically?
Thanks, Terrik
DNS changes can't break your site, they are just entries in an address book. It's got to be something to do with the way you copied the code and database over. Off the top of my head some things to check: