Page 1 of 1

[solved] Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 9:18 pm
by rlindauer
CMSMS 1.2.5
PHP 4.4.7
Apache/1.3.37
MySQL  5.0.45

I have moved the cms to a new host, setup and imported the database, and updated config.php. I also emptied the cache.

When I view the admin cp, I am seeing a whole bunch of this:

Code: Select all

--Add Me - module:SOMEMODULENAME string:plainquote--
I see this for every 3rd party module and in all the admin cp menus. How do I fix this?

The front end is displaying this:

Code: Select all

string(118) "Smarty error: [in template:18 line 5]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in template:18 line 5]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in template:18 line 6]: syntax error: unrecognized tag 'metadata' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in template:18 line 8]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in template:18 line 9]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 10]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 11]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 12]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 16]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 21]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 24]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 25]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 57]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 57]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 590)" string(125) "Smarty error: [in template:18 line 58]: syntax error: unrecognized tag 'global_content' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in template:18 line 82]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 84]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in template:18 line 89]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 91]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in template:18 line 96]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 98]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 103]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(120) "Smarty error: [in template:18 line 105]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 110]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(120) "Smarty error: [in template:18 line 112]: syntax error: unrecognized tag 'root_url' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 122]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 127]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(122) "Smarty error: [in template:18 line 129]: syntax error: unrecognized tag 'cms_module' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in template:18 line 130]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:18 line 136]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(116) "Smarty error: [in template:18 line 138]: syntax error: unrecognized tag 'news' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in template:18 line 140]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in template:18 line 158]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(126) "Smarty error: [in template:18 line 165]: syntax error: unrecognized tag 'global_content' (Smarty_Compiler.class.php, line 590)"

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 10:12 pm
by calguy1000
Re-upload.... you obviously missed some files.

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 10:27 pm
by rlindauer
I tried reuploading twice now. It's not missing files.

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 10:46 pm
by calguy1000
Something has to be missing (or permissions wrong).

The {sitename} tag is found automatically in the file plugins/function.sitename.php.... the same with the title, description, and some other tags.

If those files aren't in the plugin directory, or can't be read by the httpd server, then you will get these errors.

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 10:46 pm
by Wiedmann
Sure your paths in "config.php" are correct?

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 11:31 pm
by rlindauer
The paths are correct in config.php. All the files that are supposed to be in plugins are there. I have uploaded, reuploaded, and verified that they are identical to our staging site (which works) and the live site.

Totally stumped...

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 11:34 pm
by Dr.CSS
And all the folders/files are set to the correct permissions?...

Have you tried putting the install folder back in and running /install/upgrade.php?

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 11:38 pm
by rlindauer
Upgrade had no effect.

I have chmod 777 the cache yet the admin cp is still telling me "Cache folder is not writable."

I have made sure that the permissions are the same between staging and production.

I am sorry I cannot provide more information yet. I am still trying to get shell access so that I can poke around a bit deeper. My normal process for going live is to tar up the staging app and scp it to the production machine. Un tar, update config, and import the db and its working. Never had a problem with it. This time I was forced to use FTP.

Is there anything else I should check/do?

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 11:43 pm
by Dr.CSS
Try install but DO NOT WRITE TABLES...

This may show problem from a server side. like some folder/file not being writable, I've had instances where it needed 775 not 777 or it wouldn't work...

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 11:44 pm
by Wiedmann
I have chmod 777 the cache yet the admin cp is still telling me "Cache folder is not writable."
What happens, if you set your folders to 755 and files to 644?

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 11:44 pm
by rlindauer
Ok. wow.


So, the clients domain is not pointing to the server, so our access has been via IP.
Just for shits and giggles I updated my local hosts file to match the domain to that ip, updated the config with the new info and then flushed my dns cache. It actually works now. What in the hell? That makes no sense to me. Is there anything in the documentation about this?

Thanks for all your time with this :)

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 11:47 pm
by Dr.CSS
[solved] ?...

Re: Migrating to a new host, some major problems

Posted: Thu Jun 05, 2008 11:51 pm
by rlindauer
mark wrote: [solved] ?...
I guess.

Still do not understand why using the IP would cause this problem.