If this is your first visit, check our documentation. To post, register or login.
Forums / Business Issues / Other Business Topics / What file contains the version of Zen Cart in it?

What file contains the version of Zen Cart in it?

Started by tlc on 10 Jan 2018, 4:28 PM · Views: 141

Results 1 to 8 of 8
10 Jan 2018, 4:28 PM
#1
tlc avatar

tlc

New Zenner

Join Date:
Dec 2005
Posts:
53
Plugin Contributions:
0

What file contains the version of Zen Cart in it?

Last May, I took my shopping cart down. Everything was backed up. Then I changed web hosts and due to life happening and never got back to work on putting my cart back online. Now I can't remember which Zen cart version I was using... as I was going to upgrade before moving, but didn't get that done. I think it was 1.5.5b but I'm really not sure. :blush:

So could someone tell me where I might locate what version from my backup files that I am using so I can install my cart on the new host?

Thanks so much!

TLC Creations
tlccreations.com

10 Jan 2018, 4:38 PM
#2
tlc avatar

tlc

New Zenner

Join Date:
Dec 2005
Posts:
53
Plugin Contributions:
0

Re: What file contains the version of Zen Cart in it?

I found version updates located in my database file. According to that I had v1.5.4. But I was sure I upgraded at the end of 2016 and was at v1.5.5b. Should I use 1.5.4 for the new install and go from there?

TLC Creations
tlccreations.com

10 Jan 2018, 5:33 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: What file contains the version of Zen Cart in it?

There are two version "locations" of interest. You found the database version. The other is the file version. It is possible (though not suggested) that the file version was more recent, indicating that the zc_install process was not formally used.

Check includes/version.php for your file version. Perhaps based on that can suggest which to use; however, when moving to a new host, shouldn't do an upgrade and the move together for sanity sake. Meaning, it may be best to use the files and database that were working on the previous host and update the associated configure.php files accordingly.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

10 Jan 2018, 6:42 PM
#4
tlc avatar

tlc

New Zenner

Join Date:
Dec 2005
Posts:
53
Plugin Contributions:
0

Re: What file contains the version of Zen Cart in it?

I can't remember exactly how I did it, been too long now, but I'm sure that I followed instructions that I found on this site. And yes, I know better than to upgrade and move to new hosting at the same time.

What I want to do is to install the last version of Zen cart that I was using, like the instructions on this page https://www.zen-cart.com/content.php?142-i-want-to-move-my-zen-cart-installation-to-another-host-or-a-different-server says.

I'll worry about upgrading after I get it going in the old version first. I'll check the file you mentioned, hopefully it will be the right one.

Thanks!

TLC Creations
tlccreations.com

10 Jan 2018, 6:45 PM
#5
tlc avatar

tlc

New Zenner

Join Date:
Dec 2005
Posts:
53
Plugin Contributions:
0

Re: What file contains the version of Zen Cart in it?

This is what it says on includes/version.php

So version 1.5.5b is the right one to use?

<?php /** * version.php * Defines the project version details * Specifies what version the PHP fileset relates to. * Also declares what version the database "should" reflect if properly maintained and kept in sync. * * THIS FILE SHOULD NEVER BE EDITED MANUALLY !!!!!!!! * * @package general * @copyright Copyright 2003-2016 Zen Cart Development Team * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: Author: DrByte Sat Jan 2 19:00:25 2016 -0500 Modified in v1.5.5 $ * @private */ define('PROJECT_VERSION_NAME', 'Zen Cart'); define('PROJECT_VERSION_MAJOR', '1'); define('PROJECT_VERSION_MINOR', '5.5b'); define('PROJECT_VERSION_PATCH1', ''); define('PROJECT_VERSION_PATCH2', ''); define('PROJECT_VERSION_PATCH1_SOURCE', ''); define('PROJECT_VERSION_PATCH2_SOURCE', ''); define('NEW_VERSION_CHECKUP_URL','http://ping.zen-cart.com/version_id.txt'); define('EXPECTED_DATABASE_VERSION_MAJOR', '1'); define('EXPECTED_DATABASE_VERSION_MINOR', '5.5');

TLC Creations
tlccreations.com

10 Jan 2018, 7:46 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: What file contains the version of Zen Cart in it?

I've been trying to think of how best to answer this question, because of what I would do versus what others may suggest.

I would compare the existing fileset to a new fileset to see how much had really gotten updated. Ie. Was it the version.php file only (I've seen that) or the files that really should have been plus any modifications that had been made.

From there, I would determine whether to use the 1.5.5b fileset to test out the operation, followed by importing the old database and upgrading it...

Unfortunately then updating the files to 1.5.5f (current version). Only unfortunately because of the effort already expended above... others may suggest just going to 1.5.5f directly and others to use the fileset that matches the database...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

11 Jan 2018, 11:58 AM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: What file contains the version of Zen Cart in it?

In addition to includes/version.php as mentioned above, you can look at the database tables "project_version" and "project_version_history." This will give you some ideas on what version you are at (and where you came from).

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

11 Jan 2018, 12:10 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: What file contains the version of Zen Cart in it?

swguy:

In addition to includes/version.php as mentioned above, you can look at the database tables "project_version" and "project_version_history." This will give you some ideas on what version you are at (and where you came from).

Perhaps the OP can clarify, but I thought that the results of that review (not the how/where as described) were identified in post #2.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...