Page 1 of 2

Moving site - problem.

Posted: Wed Feb 21, 2007 10:03 am
by grasnal
Hi!

I'm trying to move my site to new server. I made mysqldump and next import it on new machine, copied files and...

Get something like this when trying to access site in new localization:

string(106) "Smarty error: [in template:20 line 5]: [plugin] unknown tag - 'sitename' (core.load_plugins.php, line 123)" string(103) "Smarty error: [in template:20 line 5]: [plugin] unknown tag - 'title' (core.load_plugins.php, line 123)" string(106) "Smarty error: [in template:20 line 6]: [plugin] unknown tag - 'metadata' (core.load_plugins.php, line 123)" string(108) "Smarty error: [in template:20 line 7]: [plugin] unknown tag - 'stylesheet' (core.load_plugins.php, line 123)" string(111) "Smarty error: [in template:20 line 10]: [plugin] unknown tag - 'cms_selflink' (core.load_plugins.php, line 123)" string(103) "Smarty error: [in template:20 line 19]: [plugin] unknown tag - 'menu' (core.load_plugins.php, line 123)" string(109) "Smarty error: [in template:20 line 26]: [plugin] unknown tag - 'cms_module' (core.load_plugins.php, line 123)"
Fatal error: Call to undefined function: smarty_cms_function_sitename() in /(...path...)/tmp/templates_c/%%7E^7E8^7E8F1701%%template%3A20.php on line 9

Any ideas what went wrong?

Re: Moving site - problem.

Posted: Wed Feb 21, 2007 10:18 am
by RonnyK
Check your paths in config.php (root)

Ronny

Re: Moving site - problem.

Posted: Thu Feb 22, 2007 10:01 am
by grasnal
Ok, paths in config.php fixed and site is opening.

But there are still some problems:
1. There is no content and CSS in site. It looks like CMS engine only display template.
2. In admin panel i get this displayed over content:

Warning: Cannot modify header information - headers already sent by (output started at /alis_test/config.php:1) in /alis_test/lib/classes/class.admintheme.inc.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /alis_test/config.php:1) in /alis_test/lib/classes/class.admintheme.inc.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /alis_test/config.php:1) in /alis_test/lib/classes/class.admintheme.inc.php on line 167

Warning: Cannot modify header information - headers already sent by (output started at /alis_test/config.php:1) in /alis_test/lib/classes/class.admintheme.inc.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /alis_test/config.php:1) in /alis_test/lib/classes/class.admintheme.inc.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /alis_test/config.php:1) in /alis_test/lib/classes/class.admintheme.inc.php on line 176

and many things in admin panel are displayed like this:

# --Add Me - module:MenuManager string:menumanager--
# --Add Me - module:ThemeManager string:friendlyname--
# --Add Me - module:CMSMailer string:friendlyname--
# --Add Me - module:FCKeditorX string:friendlyname--
# FeedbackForm
# --Add Me - module:Search string:search--
# --Add Me - module:VisitorStats string:friendlyname--

P.S. Sry for my english. It's not my native language.

Re: Moving site - problem.

Posted: Thu Feb 22, 2007 11:55 am
by RonnyK
Did you clear cache after moving to the new directory.
Check the rights on the directories. (tmp and cache or tmp/cache specifically)

Ronny

Re: Moving site - problem.

Posted: Fri Feb 23, 2007 11:22 am
by grasnal
@RonnyK:

All done. No effect :(. I put the fresh installation files on server for chcecking that every requirements are meet. And everything is OK. CMS install pass without any problems.

Dump of my DB was made using phpMyAdmin 2.9.2 on Mysql 4.1 (4.0.1 ? can't check it now) and the target server is also Mysql 4.*.

Ask me if you want know something more.

Re: Moving site - problem.

Posted: Mon Feb 26, 2007 3:01 pm
by factor1
RonnyK wrote: Did you clear cache after moving to the new directory.
Check the rights on the directories. (tmp and cache or tmp/cache specifically)

Ronny
what does this mean?

Should I delete the contentcache.php in the cache folder, or is this an action within the admin panel?

Re: Moving site - problem.

Posted: Mon Feb 26, 2007 3:13 pm
by RonnyK
factor1,

it is in the admin

Site Admin » Global Settings and than the first option.

Ronny

Re: Moving site - problem.

Posted: Mon Feb 26, 2007 5:35 pm
by factor1
would this explain why some of our sites (i have 9 total CMSms sites I had to move) are not showing anything on pages?

For example:
http://www.cohmaricopa.com/index.php  blank
http://tayloredstretching.com  blank

Some sites are fine, until you navigate to too many pages, like:
http://www.635online.com/    After the first few pages, it drops to blank pages.

All of these are on CMS version 0.12.1, Linux, Mysql 4.

Re: Moving site - problem.

Posted: Mon Feb 26, 2007 6:37 pm
by RonnyK
factor1,

did you check your config.php properly, check the root-path and check if the root-path doesn't end with a slash, also make sure that the rights are set open and that no other files are stored in the root, that are called index as well.

Ronny

Re: Moving site - problem.

Posted: Mon Feb 26, 2007 7:11 pm
by factor1
all config files are correct, and no slashes. All files belong to the psaserv group, and the user is of course each site accounts owner.

After initial copy, A site error came up as i had to chmod the tmp files to 777, then reload the site to a blank screen.

What odd, is that sites like : amyshope.org is perfect, no issues at all. Same copy method.

Re: Moving site - problem.

Posted: Mon Feb 26, 2007 7:31 pm
by factor1
ohh, and the admin panels all load just fine, and I can navigate to any and all pages in admin.

I am debating copying out all page content, and re-installing if I cant get it to load right. But that will be my last resort.

Re: Moving site - problem.

Posted: Mon Feb 26, 2007 7:33 pm
by RonnyK
What if you choose "view site" from the admin, is that working?

Ronny

Re: Moving site - problem.

Posted: Mon Feb 26, 2007 8:42 pm
by factor1
nope.

Neither will an edit preview.

Re: Moving site - problem.

Posted: Mon Feb 26, 2007 9:12 pm
by factor1
I did figure out one thing. I have 3 sites running 1.0.2. they seem to be just fine.

it seems to be the 8 other sites running 0.12.1.

think I could just copy over the upgrade files from 1.0.2, and everything would be fine and dandy?

Re: Moving site - problem.

Posted: Wed Feb 28, 2007 12:04 am
by factor1
okay, my issue exactly.

Is tokenizer. i dont have it running, causing pages to render white. it was because I switched from PHP 4.3, to PHP 5.1 when I upgraded OS.

but I dont know how to enable tokenizer.