[SOLVED] Major problems with server switch

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

[SOLVED] Major problems with server switch

Post by TwittersPVFC »

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?
Last edited by TwittersPVFC on Wed Jun 30, 2010 8:15 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Major problems with server switch

Post by Rolf »

Hit Clear Cache in the admin or delete the content of the folder /tmp/templates_c
Check server paths in config.php

®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

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. 
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Major problems with server switch

Post by Rolf »

Chmod 777 all folders and files in the folders modules, uploads and tmp recursivly
And set Umask in Default settings to 000

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

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
Is that in the public_html folder or the content folder?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Major problems with server switch

Post by Rolf »

TwittersPVFC wrote: Is that in the public_html folder or the content folder?
The folders that come with CMSMS in the root of the website
/modules
/tmp
/uploads

®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

Rolf wrote:
TwittersPVFC wrote: Is that in the public_html folder or the content folder?
The folders that come with CMSMS in the root of the website
/modules
/tmp
/uploads

®
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.

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

Post by Peciura »

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.
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

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
I've done all that but can't fine the Unmask setting.  Is it in config.php or in the admin section?
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

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.
NaN

Re: Major problems with server switch

Post by NaN »

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.
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
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

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?
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).
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

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.
NaN

Re: Major problems with server switch

Post by NaN »

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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Major problems with server switch

Post by Dr.CSS »

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...
Post Reply

Return to “Modules/Add-Ons”