Hi,
my live site is running CMSMS 1.5.4. I want to get a copy of it running locally on my computer and have just installed the latest version 1.9.2 and created a blank new database and site. Is it possible to now back up the live database and restore it over the newly created blank local one? Or do I need to approach this in a different way?
Putting 1.5.4 database on 1.9.2 install
Re: Putting 1.5.4 database on 1.9.2 install
If you want to migrate to a new version, but want to test it on the side first, the best way to do it is to copy the files from your live site (the 1.5.4 files), then copy the database, and change config.php to connect to this database copy. Verify that the installation works, then copy over your 1.5.4 files with the 1.9.2 files, then run http://yoursite.com/install/upgrade.php
Re: Putting 1.5.4 database on 1.9.2 install
OK, thanks. I don't have the 1.5.4 installation around any more so thought that copying the files down from the live site would not work, but I guess putting the new 1.9.2 files over it would force the install.
Re: Putting 1.5.4 database on 1.9.2 install
Unfortunately, the suggested process has not gone smoothly.
I copied all the 1.5.4 files off the live site and put them on my local PC in the wamp\www\arkout folder.
I then unzipped the 1.9.2 files over that folder.
I then dropped all the tables from my arkout_cms database and ran the script that I had exported from the live MySql Database.
I edited the config.php to point to this database, then I ran the upgrade.php.
First thing I noticed was some smarty errors appearing on the pages during the upgrade process. For example on the Checksum Test page, this line is the first thing displayed:
string(123) "Smarty error: [in upgradeheader.tpl line 25]: syntax error: unrecognized tag 'assign' (Smarty_Compiler.class.php, line 590)"
The upgrade apparently went through successfully, but when I load the site on my local PC, I get this error:
Fatal error: Class 'CmsRoute' not found in C:\wamp\www\arkout\lib\classes\class.contentoperations.inc.php on line 1068
Does anyone have any idea what I may have done wrong?
I copied all the 1.5.4 files off the live site and put them on my local PC in the wamp\www\arkout folder.
I then unzipped the 1.9.2 files over that folder.
I then dropped all the tables from my arkout_cms database and ran the script that I had exported from the live MySql Database.
I edited the config.php to point to this database, then I ran the upgrade.php.
First thing I noticed was some smarty errors appearing on the pages during the upgrade process. For example on the Checksum Test page, this line is the first thing displayed:
string(123) "Smarty error: [in upgradeheader.tpl line 25]: syntax error: unrecognized tag 'assign' (Smarty_Compiler.class.php, line 590)"
The upgrade apparently went through successfully, but when I load the site on my local PC, I get this error:
Fatal error: Class 'CmsRoute' not found in C:\wamp\www\arkout\lib\classes\class.contentoperations.inc.php on line 1068
Does anyone have any idea what I may have done wrong?
Re: Putting 1.5.4 database on 1.9.2 install
if you are upgrading an older version to newest you need to look at module manager afterward to see if any of the extra modules need to be upgraded, CGExtensions for example...
Re: Putting 1.5.4 database on 1.9.2 install
OK, that may have helped point out the problem (or at least one of them). When I try to go to the admin of the site on my PC I get this error and many more:
Warning: opendir(/home/www/arkoutsourcing.com\admin\/lang,/home/www/arkoutsourcing.com\admin\/lang) [function.opendir]: The system cannot find the path specified. (code: 3) in C:\wamp\www\arkout\lib\translation.functions.php on line 88
arkoutsourcing.com is the live site. localhost/arkout is my local site.
I have found a series of references to arkoutsourcing.com in the config.php file in the root of my arkout folder. I guess I need to change all of these?
Warning: opendir(/home/www/arkoutsourcing.com\admin\/lang,/home/www/arkoutsourcing.com\admin\/lang) [function.opendir]: The system cannot find the path specified. (code: 3) in C:\wamp\www\arkout\lib\translation.functions.php on line 88
arkoutsourcing.com is the live site. localhost/arkout is my local site.
I have found a series of references to arkoutsourcing.com in the config.php file in the root of my arkout folder. I guess I need to change all of these?
Re: Putting 1.5.4 database on 1.9.2 install
Yes, correct!
In your config.php you'll have to change
Also, in .htaccess there is a line
There should be nothing behind the slash here
In your config.php you'll have to change
Code: Select all
$config['root_url']
$config['root_path']
$config['previews_path']
$config['uploads_path']
$config['image_uploads_path']
Code: Select all
#Sub-dir e.g: /cmsms
RewriteBase /
Make your community a better place!
Re: Putting 1.5.4 database on 1.9.2 install
Thanks! That's got me up and running