Errors after moving to different server

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Foxworks
New Member
New Member
Posts: 3
Joined: Tue Jun 11, 2013 11:26 am

Errors after moving to different server

Post by Foxworks »

Hi All,
I am new to CMSMS. A client of mine asked me to do some redesign for their CMSMS website. To test my new design I want to make a backup copy of the client's current website, place it on my own webhosting account, and insert the new design in the backup, before editing the live website.

I have copied all website data to my own server and uploaded the backup of the MySQL database to a new local database. I have edited the config.php so that all addresses point to the backup install.

At first I had some PHP errors concerning the deprecated =& in one of the site's files. This was easily fixed.
Now however the backup site loads only a blank page when it is visited. When I turn on CMSMS error reporting I get several Smarty Errors:

Code: Select all

string(125) "Smarty error: [in tpl_top:18 line 1]: syntax error: unrecognized tag 'process_pagedata' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in tpl_head:18 line 5]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in tpl_head:18 line 6]: syntax error: unrecognized tag 'metadata' (Smarty_Compiler.class.php, line 590)" string(120) "Smarty error: [in tpl_head:18 line 7]: syntax error: unrecognized tag 'stylesheet' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in tpl_body:18 line 4]: syntax error: unrecognized tag 'global_content' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in tpl_body:18 line 6]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in tpl_body:18 line 8]: syntax error: unrecognized tag 'global_content' (Smarty_Compiler.class.php, line 590)" 
I'd like to know which steps I can take to get the backup running on my server.

The website runs on CMSMS version 1.7.1, which I understand is very old. I don't know the PHP version of my clients website, but since I got the error concerning the deprecated use of =&, I assume it is v4. The PHP version on my server is 5.3.5.

Line 590 in Smarty_Compiler.class.php that is mentioned in the error message only contains the code that generates the error message ($this->_syntax_error("unrecognized tag '$tag_command'", E_USER_ERROR, __FILE__, __LINE__);) I have no clue as to where the unrecognised tags are called, and how I can fix this.

Any advice would be greatly appreciated!

Kind regards,
Chris
Last edited by Foxworks on Tue Jun 11, 2013 2:03 pm, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Errors after moving to different server

Post by Jo Morg »

Yup that's an old version...
I would start by checking the paths settings in config.php, as these may still reflect the original server installation settings.
But after getting it working, upgrading is highly recommended as the policy is to only support the latest 3 releases of cmsms.
HTH
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Errors after moving to different server

Post by Dr.CSS »

Most likely path problem in the config.php, I would upload the install folder from CMSMS version 1.7.1, whatever version you have, then run install but ON STEP 5 DON'T CREATE TABLES OR INSTALL DEFAULT CONTENT this will correct any path problems, then upgrade to latest CMSMS as all previous versions are vulnerable to exploits...
Foxworks
New Member
New Member
Posts: 3
Joined: Tue Jun 11, 2013 11:26 am

Re: Errors after moving to different server

Post by Foxworks »

Yeah, I'll try to update everything once I get it working.

I don't think that the paths in the config file are the problem. I've checked them all, and as far as I know they are correct.

This is the complete debug screen I get when I visit th ehomepage of the backup website:

Code: Select all

string(125) "Smarty error: [in tpl_top:18 line 1]: syntax error: unrecognized tag 'process_pagedata' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in tpl_head:18 line 5]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in tpl_head:18 line 6]: syntax error: unrecognized tag 'metadata' (Smarty_Compiler.class.php, line 590)" string(120) "Smarty error: [in tpl_head:18 line 7]: syntax error: unrecognized tag 'stylesheet' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in tpl_body:18 line 4]: syntax error: unrecognized tag 'global_content' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in tpl_body:18 line 6]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in tpl_body:18 line 8]: syntax error: unrecognized tag 'global_content' (Smarty_Compiler.class.php, line 590)"

Generated in 0.11715 seconds by CMS Made Simple using 10 SQL queries and 6299468 bytes of memory (peak memory usage was 6848180)
Debug: (0.00723) - (892608)

loading smarty

Debug: (0.010682) - (1162832)

loading adodb

Debug: (0.011939) - (1245508)

loading page functions

Debug: (0.015732) - (1418520)

loading content functions

Debug: (0.017984) - (1613536)

loading pageinfo functions

Debug: (0.018478) - (1645516)

loading translation functions

Debug: (0.018788) - (1662128)

loading events functions

Debug: (0.01976) - (1740048)

loading php4 entity decode functions

Debug: (0.02192) - (1950624)

done loading files

Debug: (0.034454) - (2613300)

<br>
(mysql): SELECT sitepref_name, sitepref_value from interiorcontrol_siteprefs<br>
 Error (0): <br>

Debug: (0.037624) - (2709448)

<br>
(mysql): SELECT * FROM interiorcontrol_userplugins<br>
 Error (0): <br>

Debug: (0.043147) - (3136160)

<br>
(mysql): SELECT * FROM interiorcontrol_modules WHERE admin_only = 0 AND active = 1 ORDER by module_name<br>
 Error (0): <br>

Debug display of 'End of include':(0.066721) - (4995116)
Debug display of 'Load Content Operations':(0.066894) - (4987508)
Debug display of 'End Load Content Operations':(0.07332) - (5526984)
Debug: (0.073907) - (5527720)

<br>
(mysql): SELECT content_id FROM interiorcontrol_content WHERE default_content = 1<br>
 Error (0): <br>

Debug: (0.074686) - (5531612)

<br>
(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 interiorcontrol_templates t INNER JOIN interiorcontrol_content c ON c.template_id = t.template_id WHERE (c.content_alias = '16' OR c.content_id = '16') AND c.active = 1<br>
 Error (0): <br>

Debug: (0.075204) - (5533936)

<br>
(mysql): SELECT MAX(modified_date) AS thedate FROM interiorcontrol_content c<br>
 Error (0): <br>

Debug display of 'Start Loading Hierarchy Manager':(0.07558) - (5532452)
Debug display of 'starting tree':(0.075608) - (5532792)
Debug: (0.077407) - (5668072)

file needs loading

Debug display of 'ending tree':(0.078641) - (5859220)
Debug display of 'End Loading Hierarchy Manager':(0.078674) - (5825920)
Debug: (0.078699) - (5826120)

start findNodeByTag

Debug: (0.078736) - (5826308)

end findNodeByTag

Debug: (0.079128) - (5828184)

<br>
(mysql): SELECT * FROM interiorcontrol_content WHERE content_id = '16'<br>
 Error (0): <br>

Debug: (0.080753) - (5966328)

load from data is loading properties

Debug: (0.081317) - (5968076)

<br>
(mysql): SELECT * FROM interiorcontrol_content_props WHERE content_id = '16'<br>
 Error (0): <br>

Debug: (0.08323) - (6095760)

<br>
(mysql): SELECT template_id, template_name, template_content, stylesheet, encoding, active, default_template, modified_date FROM interiorcontrol_templates WHERE template_id = '18'<br>
 Error (0): <br>

Debug: (0.094164) - (6759648)

<br>
(mysql): SELECT eh.tag_name, eh.module_name, e.originator, e.event_name, eh.handler_order, eh.handler_id, eh.removable FROM interiorcontrol_event_handlers eh
        INNER JOIN interiorcontrol_events e ON e.event_id = eh.event_id
        ORDER BY eh.handler_order ASC<br>
 Error (0): <br>

Debug: (0.11691) - (6695792)

calling module TinyMCE from event ContentPostRender

On the admin side I get the following messages:

Code: Select all

ERROR: The CGExtensions module could not be found.

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/chrisvos.com/httpdocs/interiorcontrol/modules/SiteMapMadeSimple/SiteMapMadeSimple.module.php:35) in /var/www/vhosts/chrisvos.com/httpdocs/interiorcontrol/admin/login.php on line 313

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/chrisvos.com/httpdocs/interiorcontrol/modules/SiteMapMadeSimple/SiteMapMadeSimple.module.php:35) in /var/www/vhosts/chrisvos.com/httpdocs/interiorcontrol/admin/login.php on line 314

Debug: (4.5E-5) - (876616)

loading smarty

Debug: (0.003333) - (1147060)

loading adodb

Debug: (0.004498) - (1229732)

loading page functions

Debug: (0.006877) - (1402696)

loading content functions

Debug: (0.009043) - (1597740)

loading pageinfo functions

Debug: (0.009526) - (1629712)

loading translation functions

Debug: (0.009846) - (1646320)

loading events functions

Debug: (0.010823) - (1724240)

loading php4 entity decode functions

Debug: (0.012845) - (1934836)

done loading files

Debug: (0.022987) - (2597824)

<br>
(mysql): SELECT sitepref_name, sitepref_value from interiorcontrol_siteprefs<br>
 Error (0): <br>

Debug: (0.025774) - (2694008)

<br>
(mysql): SELECT * FROM interiorcontrol_userplugins<br>
 Error (0): <br>

Debug: (0.038564) - (3347692)

<br>
(mysql): SELECT * FROM interiorcontrol_modules WHERE active = 1 ORDER by module_name<br>
 Error (0): <br>

Debug display of 'End of include':(0.060776) - (5618944)
Debug: (0.0688) - (5582344)

No session found.  Now check for cookies

Debug: (0.068835) - (5582524)

No cookies found.  Redirect to login.

Debug: (0.068935) - (5582796)

debug is:

Debug: (0.11366) - (5594224)

Debug in the page is: 
Sorry for the long blocks of code, but I thought I'd better give all the information.

Kind regards,
Chris
Foxworks
New Member
New Member
Posts: 3
Joined: Tue Jun 11, 2013 11:26 am

Re: Errors after moving to different server

Post by Foxworks »

I just tried doing what Dr.CSS suggested. However, during the install process I got the following error messages:

Code: Select all

ERROR: The CGExtensions module could not be found.

string(123) "Smarty error: [in installheader.tpl line 31]: syntax error: unrecognized tag 'assign' (Smarty_Compiler.class.php, line 590)" 

string(117) "Smarty error: [in install1.tpl line 16]: syntax error: unrecognized tag 'cycle' (Smarty_Compiler.class.php, line 590)" 

string(117) "Smarty error: [in install2.tpl line 19]: syntax error: unrecognized tag 'cycle' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in install2.tpl line 52]: syntax error: unrecognized tag 'cycle' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in install2.tpl line 103]: syntax error: unrecognized tag 'cycle' (Smarty_Compiler.class.php, line 590)" 
These look the same as the others and could probably be fixed the same way.

The required setting also turned up with an error however:

Code: Select all

Testing error_reporting to ensure E_DEPRECATED is disabled

E_DEPRECATED is enabled
Is this a PHP setting that can be controlled by .htaccess?
I googled it and tried adding php_value error_reporting 1, but that did not work.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Errors after moving to different server

Post by Jo Morg »

I will assume that either your client's server, your server or both were accessed through ftp. If that's the case, there is a chance that some amount of files got corrupted in the process. You should try the checksum to test the core files integrity. On the other hand it also appears that some of the modules need to be properly installed on your test server. I would try a clean install (on a test site) of the version your client has, followed by the install of the modules your client has (take note of the versions) and, if the clean install is ok, then I would import the client's db overwriting the clean install. I believe this should work as long as you can ensure the files' integrity.
Remember to clear the cache after each modules' install.
HTH.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Locked

Return to “[locked] Installation, Setup and Upgrade”