[SOLVED] Major problems with server switch
-
TwittersPVFC
- Forum Members

- Posts: 24
- Joined: Sun Jun 06, 2010 7:13 pm
[SOLVED] Major problems with server switch
Hi all,
I've been asked to copy a website over from one server to another and I've managed to get halfway there but hit a brick wall and not been able to find the answers to my problem anywhere. The problems are that none of the site styles seem to load up and I get the following errors at the top of the page:
string(118) "Smarty error: [in template:17 line 9]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in template:17 line 9]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:17 line 12]: syntax error: unrecognized tag 'metadata' (Smarty_Compiler.class.php, line 590)" string(121) "Smarty error: [in template:17 line 15]: syntax error: unrecognized tag 'stylesheet' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 18]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 19]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 20]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 52]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 53]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 64]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in template:17 line 80]: syntax error: unrecognized tag 'menu' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 105]: syntax error: unrecognized tag 'print' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 106]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:17 line 107]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in template:17 line 112]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in template:17 line 115]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in template:17 line 116]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(126) "Smarty error: [in template:17 line 132]: syntax error: unrecognized tag 'global_content' (Smarty_Compiler.class.php, line 590)"
I read in another thread on this site that I should check Site Admin -> System Verification, however, this doesn't seem to ehist so I can't check that. In addition, when I try to view the admin section I get errors under the Content, Layout and Extensions tab with certain options saying "--Add Me-" at the start.
Anyone any ideas?
I've been asked to copy a website over from one server to another and I've managed to get halfway there but hit a brick wall and not been able to find the answers to my problem anywhere. The problems are that none of the site styles seem to load up and I get the following errors at the top of the page:
string(118) "Smarty error: [in template:17 line 9]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in template:17 line 9]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:17 line 12]: syntax error: unrecognized tag 'metadata' (Smarty_Compiler.class.php, line 590)" string(121) "Smarty error: [in template:17 line 15]: syntax error: unrecognized tag 'stylesheet' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 18]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 19]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 20]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 52]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 53]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 64]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in template:17 line 80]: syntax error: unrecognized tag 'menu' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 105]: syntax error: unrecognized tag 'print' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 106]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:17 line 107]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in template:17 line 112]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in template:17 line 115]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in template:17 line 116]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(126) "Smarty error: [in template:17 line 132]: syntax error: unrecognized tag 'global_content' (Smarty_Compiler.class.php, line 590)"
I read in another thread on this site that I should check Site Admin -> System Verification, however, this doesn't seem to ehist so I can't check that. In addition, when I try to view the admin section I get errors under the Content, Layout and Extensions tab with certain options saying "--Add Me-" at the start.
Anyone any ideas?
Last edited by TwittersPVFC on Wed Jun 30, 2010 8:15 pm, edited 1 time in total.
Re: Major problems with server switch
Hit Clear Cache in the admin or delete the content of the folder /tmp/templates_c
Check server paths in config.php
®
Check server paths in config.php
®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
TwittersPVFC
- Forum Members

- Posts: 24
- Joined: Sun Jun 06, 2010 7:13 pm
Re: Major problems with server switch
I've tried clearing the cache, but I get the following error when I try to do that:
"Cache folder is not writable. Clearing cache will not work. Please make the tmp/cache folder have full read/write/execute permissions (chmod 777). You may also have to disable safe mode. (Troubleshooting)"
I have checked using my ftp window and the permissions in /www/content/tmp/cache/ and /public_html/content/tmp/cache/ are at 777. Clearing the cache has got rid of all the error messages but the template still looks wrong and not set. However, when I cleared /tmp/templates_c all the errors came back.
I've checked the config.php file and all seem fine.
"Cache folder is not writable. Clearing cache will not work. Please make the tmp/cache folder have full read/write/execute permissions (chmod 777). You may also have to disable safe mode. (Troubleshooting)"
I have checked using my ftp window and the permissions in /www/content/tmp/cache/ and /public_html/content/tmp/cache/ are at 777. Clearing the cache has got rid of all the error messages but the template still looks wrong and not set. However, when I cleared /tmp/templates_c all the errors came back.
I've checked the config.php file and all seem fine.
Re: Major problems with server switch
Chmod 777 all folders and files in the folders modules, uploads and tmp recursivly
And set Umask in Default settings to 000
Rolf
And set Umask in Default settings to 000
Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
TwittersPVFC
- Forum Members

- Posts: 24
- Joined: Sun Jun 06, 2010 7:13 pm
Re: Major problems with server switch
Is that in the public_html folder or the content folder?Rolf wrote: Chmod 777 all folders and files in the folders modules, uploads and tmp recursivly
And set Umask in Default settings to 000
Rolf
Re: Major problems with server switch
The folders that come with CMSMS in the root of the websiteTwittersPVFC wrote: Is that in the public_html folder or the content folder?
/modules
/tmp
/uploads
®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
TwittersPVFC
- Forum Members

- Posts: 24
- Joined: Sun Jun 06, 2010 7:13 pm
Re: Major problems with server switch
I think that may be the public_html folder as that's what's down in the config file but I'm not sure as I've taken on the website from someone else so didn't set it up, so I don't know how the original designers set it up as the contents of public_html and www seem identical.Rolf wrote:The folders that come with CMSMS in the root of the websiteTwittersPVFC wrote: Is that in the public_html folder or the content folder?
/modules
/tmp
/uploads
®
On this subject as well, what's the quickest way to change all the permissions on the files and folders when they're stored on a remote server? I don't really want to click on every single file within the ftp Windows Explorer window. The only other programs I have are PuTTY SSH (which I can't seem to connect to the domain name using) and FileZilla. Otherwise it's click on 300 odd files and folders individually!
-
Peciura
Re: Major problems with server switch
cPanel is common host management interface, that has basic file manager.
Filezilla can also recurse CHMOD to folders and files but it takes a minute or two instead of 1s with cPanel, WinSCP or Putty.
Filezilla can also recurse CHMOD to folders and files but it takes a minute or two instead of 1s with cPanel, WinSCP or Putty.
-
TwittersPVFC
- Forum Members

- Posts: 24
- Joined: Sun Jun 06, 2010 7:13 pm
Re: Major problems with server switch
I've done all that but can't fine the Unmask setting. Is it in config.php or in the admin section?Rolf wrote: Chmod 777 all folders and files in the folders modules, uploads and tmp recursivly
And set Umask in Default settings to 000
Rolf
-
TwittersPVFC
- Forum Members

- Posts: 24
- Joined: Sun Jun 06, 2010 7:13 pm
Re: Major problems with server switch
Here's another possible angle to look at. I've just tried to access the Modules part of the admin section and seen this at the bottom:
The modules folder is not writable, if you would like to install modules by uploading an XML file you need to make the modules folder have full read/write/execute permissions (chmod 777). Safe mode may also be in effect. (Troubleshooting)
And I've also just gone to preview one of the pages and seen this at the top:
Smarty error: [in preview:cmspreviewnbE5ul line 9]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 590)" string(132) "Smarty error: [in preview:cmspreviewnbE5ul line 12]: syntax error: unrecognized tag 'metadata'
There was also another admin page I looked at (can't remember which now) which said in the window "Cannot find /public_html/....
Could it be that when I've copied over from the old to the new server, that for some reason it's still trying to look at the old server for the templates, stylesheets and admin section etc?
I'm really bermused by this.
The modules folder is not writable, if you would like to install modules by uploading an XML file you need to make the modules folder have full read/write/execute permissions (chmod 777). Safe mode may also be in effect. (Troubleshooting)
And I've also just gone to preview one of the pages and seen this at the top:
Smarty error: [in preview:cmspreviewnbE5ul line 9]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 590)" string(132) "Smarty error: [in preview:cmspreviewnbE5ul line 12]: syntax error: unrecognized tag 'metadata'
There was also another admin page I looked at (can't remember which now) which said in the window "Cannot find /public_html/....
Could it be that when I've copied over from the old to the new server, that for some reason it's still trying to look at the old server for the templates, stylesheets and admin section etc?
I'm really bermused by this.
-
NaN
Re: Major problems with server switch
Wich one of the bold marked directories is the currently used directory where your CMS ist installed now and wich one is set in the config.php?TwittersPVFC wrote:
I have checked using my ftp window and the permissions in /www/content/tmp/cache/ and /public_html/content/tmp/cache/ are at 777.
-
TwittersPVFC
- Forum Members

- Posts: 24
- Joined: Sun Jun 06, 2010 7:13 pm
Re: Major problems with server switch
I think if memory serves me right that the public_html folder is practically an exact copy of the www folder. In both the config files in the two folders public_html is referenced in the variables, so I'm not sure what the www folder is for (although I can access the admin section through \www\content but not public_html\content).NaN wrote:
Wich one of the bold marked directories is the currently used directory where your CMS ist installed now and wich one is set in the config.php?
-
TwittersPVFC
- Forum Members

- Posts: 24
- Joined: Sun Jun 06, 2010 7:13 pm
Re: Major problems with server switch
Still having problems with this and it's really doing my head in!
I can't understand what's going wrong but it appears that judging from the html source the file isn't being found. This is the first few lines of the source:
-
=b){nw=b+"px";}if(w
However, when I go into the admin section (I still have the Add Me options under Content, Layout and Extensions) and view the template that's being used, this is what I should see:
{* Change lang="en" to the language of your site *}
{sitename} - {title}
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optmization *}
{literal}
=b){nw=b+"px";}if(w
Any help would be appreciated. I'm also getting the following error too in Site Admin/Global Settings:
Cache folder is not writable. Clearing cache will not work. Please make the tmp/cache folder have full read/write/execute permissions (chmod 777). You may also have to disable safe mode. (Troubleshooting)
I've definately set the permissions so it isn't that.
I can't understand what's going wrong but it appears that judging from the html source the file isn't being found. This is the first few lines of the source:
-
=b){nw=b+"px";}if(w
However, when I go into the admin section (I still have the Add Me options under Content, Layout and Extensions) and view the template that's being used, this is what I should see:
{* Change lang="en" to the language of your site *}
{sitename} - {title}
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optmization *}
{literal}
=b){nw=b+"px";}if(w
Any help would be appreciated. I'm also getting the following error too in Site Admin/Global Settings:
Cache folder is not writable. Clearing cache will not work. Please make the tmp/cache folder have full read/write/execute permissions (chmod 777). You may also have to disable safe mode. (Troubleshooting)
I've definately set the permissions so it isn't that.
-
NaN
Re: Major problems with server switch
What root path is set in the config.php?
It needs to point to that path where your cms installation is.
I don't understand the problem.
You changed the folders when moving to another server -> so you need to adapt the config.php to point the root_path to the new location.
It needs to point to that path where your cms installation is.
I don't understand the problem.
You changed the folders when moving to another server -> so you need to adapt the config.php to point the root_path to the new location.
Re: Major problems with server switch
If you moved it and didn't clear cache b4 and now have problems with paths...
As long as your permissions of folders in public_html are correct, modules, tmp, tpm/cache, tmp/templates_c, then put the install folder from the version it is, if you don't have it you can go to http://dev.cmsmadesimple.org/project/files/6#package-1 and DL the one it is unpack and puit the install folder back in them run install but ON STEP 5 UNTICK THE CREATE TABLES AND INSTALL DEFAULT CONTENT at the bottom after inputting the DB info and this will recreate the config.php w/o screwing up all the content, templates, etc...
As long as your permissions of folders in public_html are correct, modules, tmp, tpm/cache, tmp/templates_c, then put the install folder from the version it is, if you don't have it you can go to http://dev.cmsmadesimple.org/project/files/6#package-1 and DL the one it is unpack and puit the install folder back in them run install but ON STEP 5 UNTICK THE CREATE TABLES AND INSTALL DEFAULT CONTENT at the bottom after inputting the DB info and this will recreate the config.php w/o screwing up all the content, templates, etc...


