Putting 1.5.4 database on 1.9.2 install

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
FCazabon
Forum Members
Forum Members
Posts: 165
Joined: Fri Nov 07, 2008 5:28 pm

Putting 1.5.4 database on 1.9.2 install

Post by FCazabon »

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?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Putting 1.5.4 database on 1.9.2 install

Post by Wishbone »

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
FCazabon
Forum Members
Forum Members
Posts: 165
Joined: Fri Nov 07, 2008 5:28 pm

Re: Putting 1.5.4 database on 1.9.2 install

Post by FCazabon »

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.
FCazabon
Forum Members
Forum Members
Posts: 165
Joined: Fri Nov 07, 2008 5:28 pm

Re: Putting 1.5.4 database on 1.9.2 install

Post by FCazabon »

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

Re: Putting 1.5.4 database on 1.9.2 install

Post by Dr.CSS »

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...
FCazabon
Forum Members
Forum Members
Posts: 165
Joined: Fri Nov 07, 2008 5:28 pm

Re: Putting 1.5.4 database on 1.9.2 install

Post by FCazabon »

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?
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: Putting 1.5.4 database on 1.9.2 install

Post by M@rtijn »

Yes, correct!

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']
Also, in .htaccess there is a line

Code: Select all

#Sub-dir e.g: /cmsms
RewriteBase /
There should be nothing behind the slash here
Make your community a better place!
FCazabon
Forum Members
Forum Members
Posts: 165
Joined: Fri Nov 07, 2008 5:28 pm

Re: Putting 1.5.4 database on 1.9.2 install

Post by FCazabon »

Thanks! That's got me up and running
Locked

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