Page 1 of 1

Move CMSMS from Unix server to Windows Server

Posted: Wed Jan 10, 2007 10:20 pm
by ttheill
Hi folks...!

Can someone please help me. My host provider had a major crash with their Unix server cluster and had to move my site (2409.dk) to a Windows Server with PHP and MySQL.
However I have not been running since.
First of all there was a DB problem which I solved myself but now I only get this:

string(102) "Smarty error: [in template:1 line 4]: [plugin] unknown tag - 'title' (core.load_plugins.php, line 123)" string(107) "Smarty error: [in template:1 line 5]: [plugin] unknown tag - 'stylesheet' (core.load_plugins.php, line 123)" string(108) "Smarty error: [in template:1 line 17]: [plugin] unknown tag - 'cms_module' (core.load_plugins.php, line 123)" string(103) "Smarty error: [in template:1 line 23]: [plugin] unknown tag - 'print' (core.load_plugins.php, line 123)" string(105) "Smarty error: [in template:1 line 25]: [plugin] unknown tag - 'content' (core.load_plugins.php, line 123)" string(104) "Smarty error: [in template:1 line 30]: [plugin] unknown tag - 'footer' (core.load_plugins.php, line 123)"

When I access my site... What do I do???  :'(

Thanx in advance.

Best Regards,
Thomas

Re: Move CMSMS from Unix server to Windows Server

Posted: Wed Jan 10, 2007 10:22 pm
by ttheill
I have just found out that the admin module is working just fine  :)
But I still need help with the rest...

Re: Move CMSMS from Unix server to Windows Server

Posted: Wed Jan 10, 2007 10:45 pm
by cyberman
ttheill wrote: string(102) "Smarty error: [in template:1 line 4]: [plugin] unknown tag - 'title' (core.load_plugins.php, line 123)" string(107) "Smarty error: [in template:1 line 5]: [plugin] unknown tag - 'stylesheet' (core.load_plugins.php, line 123)" string(108) "Smarty error: [in template:1 line 17]: [plugin] unknown tag - 'cms_module' (core.load_plugins.php, line 123)" string(103) "Smarty error: [in template:1 line 23]: [plugin] unknown tag - 'print' (core.load_plugins.php, line 123)" string(105) "Smarty error: [in template:1 line 25]: [plugin] unknown tag - 'content' (core.load_plugins.php, line 123)" string(104) "Smarty error: [in template:1 line 30]: [plugin] unknown tag - 'footer' (core.load_plugins.php, line 123)"
In cause of a server change there are some pathes wrong in config.php.

Create a small php file

Code: Select all

<?
echo $_SERVER["DOCUMENT_ROOT"];
?>
Copy it to your site root and run file. The output will display the server path to your site.

Now you can modify/correct your config.php

Re: Move CMSMS from Unix server to Windows Server

Posted: Sun Jan 14, 2007 8:38 pm
by ttheill
Hi again...
Thanks for answering. I tried changing the paths in config.php and it "helped" a little. Now I have tried updating the site again.
Now I only get blank page with the CMSMS logo on it.
There is no helped from the provider so if there is anyone with any ideas - please reply here...

BW
Thomas

Re: Move CMSMS from Unix server to Windows Server

Posted: Sun Jan 14, 2007 10:24 pm
by ttheill
Hi again...
If I turn on debug mode I get this...

string(114) "Smarty error: [in template:1 line 4]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 583)" string(119) "Smarty error: [in template:1 line 5]: syntax error: unrecognized tag 'stylesheet' (Smarty_Compiler.class.php, line 583)" string(120) "Smarty error: [in template:1 line 17]: syntax error: unrecognized tag 'cms_module' (Smarty_Compiler.class.php, line 583)" string(115) "Smarty error: [in template:1 line 23]: syntax error: unrecognized tag 'print' (Smarty_Compiler.class.php, line 583)" string(117) "Smarty error: [in template:1 line 25]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 583)" string(116) "Smarty error: [in template:1 line 30]: syntax error: unrecognized tag 'footer' (Smarty_Compiler.class.php, line 583)"


Generated in 0.248694 seconds by CMS Made Simple using 8 SQL queries and n/a bytes of memory

Debug: (0.019683)
loading smarty
Debug: (0.032018)
loading adodb
Debug: (0.035518)
loading page functions
Debug: (0.043102)
loading content functions
Debug: (0.050646)
loading pageinfo functions
Debug: (0.052795)
loading translation functions
Debug: (0.054053)
loading events functions
Debug: (0.058206)
loading template functions
Debug: (0.062982)
loading gcb functions
Debug: (0.067212)
loading module class
Debug: (0.084671)
loading bookmark functions
Debug: (0.087498)
loading content class
Debug: (0.106465)
loading user functions
Debug: (0.110695)
loading group functions
Debug: (0.113265)
loading stylesheet functions
Debug: (0.116379)
loading user tags functions
Debug: (0.11805)
done loading files
Debug: (0.156987)

(mysql): SELECT sitepref_name, sitepref_value from cms_siteprefs
Error (0):

Debug: (0.162958)

(mysql): SELECT * FROM cms_userplugins
Error (0):

Debug: (0.168388)

(mysql): SELECT * FROM cms_modules WHERE admin_only = 0 ORDER BY module_name
Error (0):

Debug display of 'End of include':(0.21099)

Debug display of 'Load Content Operations':(0.211398)

Debug display of 'End Load Content Operations':(0.211481)

Debug: (0.212922)

(mysql): SELECT content_id FROM cms_content WHERE default_content = 1
Error (0):

Debug: (0.215301)

(mysql): SELECT c.content_id, c.content_name, c.content_alias, c.menu_text, c.titleattribute, c.hierarchy, c.metadata, c.id_hierarchy, c.prop_names, c.create_date AS c_create_date, c.modified_date AS c_date, c.cachable, c.last_modified_by, t.template_id, t.encoding, t.modified_date AS t_date FROM cms_templates t INNER JOIN cms_content c ON c.template_id = t.template_id WHERE (c.content_alias = '1' OR c.content_id = '1') AND c.active = 1
Error (0):

Debug: (0.216323)

(mysql): SELECT MAX(modified_date) AS thedate FROM cms_content c
Error (0):

Debug: (0.220049)

(mysql): SELECT template_id, template_name, template_content, stylesheet, encoding, active, default_template, modified_date FROM cms_templates WHERE template_id = '1'
Error (0):

Debug: (0.235221)

(mysql): SELECT eh.tag_name, eh.module_name, e.originator, e.event_name, eh.handler_order, eh.handler_id, eh.removable FROM cms_event_handlers eh
        INNER JOIN cms_events e ON e.event_id = eh.event_id
        ORDER BY eh.handler_order ASC
Error (0):

If that helps anyone??

Please help if you can :)

BW
Thomas

Re: Move CMSMS from Unix server to Windows Server

Posted: Mon Jan 15, 2007 4:45 am
by cyberman
Are you sure your correction are all right ?

Please post result of the little script and your anonymized config.php ...

Re: Move CMSMS from Unix server to Windows Server

Posted: Mon Jan 15, 2007 9:02 pm
by ttheill
Hi...
thanx for replying...
All I get for the server path file is a blank page (see for yourself at http://www.2409.dk/server.php).

Here is a copy of my config.php:
Global Settings in the admin panel)
#after making any changes to path or url related options

#-----------------
#Database Settings
#-----------------

#This is your database connection information.  Name of the server,
#username, password and a database with proper permissions should
#all be setup before CMS Made Simple is installed.
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'removed';
$config['db_username'] = 'removed';
$config['db_password'] = 'removed';
$config['db_name'] = 'removed';

#If app needs to coexist with other tables in the same db,
#put a prefix here.  e.g. "cms_"
$config['db_prefix'] = 'cms_';

#Use persistent connections?  They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = true;

#Use ADODB Lite?  This should be true in almost all cases.  Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;

#-------------
#Path Settings
#-------------

#Document root as seen from the webserver.  No slash at the end
#e.g. http://blah.com
$config['root_url'] = 'http://2409.dk';

#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/wwwroot';

#Name of the admin directory
$config['admin_dir'] = 'admin';

#Where do previews get stored temporarily?  It defaults to tmp/cache.
$config['previews_path'] = '/wwwroot';

#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/wwwroot';

#Where is the url to this uploads directory?
$config['uploads_url'] = 'http://2409.dk/wwwroot/uploads';

#---------------
#Upload Settings
#---------------

#Maxium upload size (in bytes)?
$config['max_upload_size'] = 1000000;

#Permissions for uploaded files.  This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '664';

#------------------
#Usability Settings
#------------------

#Allow smarty {php} tags?  These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;

#CMSMS Debug Mode?  Turn is on to get a better error when you
#see {nocache} errors.
$config['debug'] = false;

#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;

#------------
#URL Settings
#------------

#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = false;

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.shtml';

#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism?  This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';

#--------------
#Image Settings
#--------------

#Which program should be used for handling thumbnails in the image manager.
#See http://wiki.cmsmadesimple.org/index.php ... ge_Manager for more
#info on what this all means
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';

#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/wwwroot/uploads/images';
$config['image_uploads_url'] = 'http://2409.dk/wwwroot/uploads/images';

#------------------------
#Locale/Encoding Settings
#------------------------

#Locale to use for various default date handling functions, etc.  Leaving
#this blank will use the server's default.  This might not be good if the
#site is hosted in a different country than it's intended audience.
$config['locale'] = 'en_US';

#In almost all cases, default_encoding should be empty (which defaults to utf-8)
#and admin_encoding should be utf-8.  If you'd like this to be different, change
#both.  Keep in mind, however, that the admin interface translations are all in
#utf-8, and will be converted on the fly to match the admin_encoding.  This
#could seriously slow down the admin interfaces for users.
$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';

#---------------------------------------------
#Use the old stylesheet logic?  It's much slower, but it works with older
#versions of CMSMS.  You'll also need this set to true if there is a module
#that uses a stylesheet callback.  Leave it as false instead you really
#need it.
$config['old_stylesheet'] = true;

# URL of the Admin Panel section of the User Handbook
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php ... dmin_Panel';

#Enable backwards compatibility mode?  This basically will allow some
#modules written before 1.0 was released to work.  Keep in mind that this
#will use a lot more memory and isn't guaranteed to fix the problem.
$config['backwards_compatible'] = true;

#Not used anymore... kept around, just in case
$config['disable_htmlarea_translation'] = false;
$config['use_Indite'] = true;
?>

Re: Move CMSMS from Unix server to Windows Server

Posted: Mon Jan 15, 2007 9:06 pm
by ttheill
it worked like af charm on the linux server and now with windows server 2003 it's not *bummer*  :'(

Re: Move CMSMS from Unix server to Windows Server

Posted: Mon Jan 15, 2007 9:11 pm
by Dr.CSS
Have you tried doing a default install on the widows server to see if it works as it should?...

If it works/shows the site and you can make changes and they take/show on the front end and all modules are the same in both installs and all you need is a preexisting site, you made it and have all the info/pages done, moved you may be able to use the Database backup module, I've used it to move whole sites from one server to another and it makes an exact duplicate...

This thread has my info on how I do it...
http://forum.cmsmadesimple.org/index.ph ... l#msg24122

Re: Move CMSMS from Unix server to Windows Server

Posted: Tue Jan 16, 2007 4:40 am
by cyberman
You can trying too to create a fresh cmsms install and look if it will work. Then you can import database ...