Jump to content



Latest News: (loading..)

* * * * - 3 votes

What version is my shop?


This topic has been archived. This means that you cannot reply to this topic.
72 replies to this topic

#-19 ONLINE   Jack_mcs

Jack_mcs
  • Members
  • 25,316 posts

Posted 13 November 2007 - 07:28 PM

The question of what version a shop is has been getting asked a lot lately. This is meant to give a quick way to check it.

- First look in includes/application_top.php and find this line
// define the project version
Under that will be a line that starts with define('PROJECT_VERSION'.  These are the main choices:

define('PROJECT_VERSION', 'osCommerce 2.2-MS1'); //released prior to July/2003
define('PROJECT_VERSION', 'osCommerce 2.2-CVS'); //released between the above/below dates
define('PROJECT_VERSION', 'osCommerce 2.2-MS2'); //released after July/2003
define('PROJECT_VERSION', 'osCommerce Online Merchant v2.2 RC1'); //released March/2007
define('PROJECT_VERSION', 'osCommerce 3.xxx'); //not released for general use

The versions before MS2 are not compatible with MS2, which is the main version is use. Between MS2 and RC1, there were two patch updates. There isn't a version number for those patches (in the files) so you have to compare file content to see if they are installed. First, download the patches from here. Extract the contents and compare a few of the files with those in your shop. If your shop has them installed, then you probably have the latest MS2 version.

Jack

#-18   Coopco

Coopco
  • Members
  • 9,557 posts

Posted 16 November 2007 - 01:23 PM

View PostJack_mcs, on Nov 14 2007, 06:28 AM, said:

The question of what version a shop is has been getting asked a lot lately. This is meant to give a quick way to check it.

- First look in includes/application_top.php and find this line
// define the project version
Under that will be a line that starts with define('PROJECT_VERSION'.  These are the main choices:

define('PROJECT_VERSION', 'osCommerce 2.2-MS1'); //released prior to July/2003
define('PROJECT_VERSION', 'osCommerce 2.2-CVS'); //released between the above/below dates
define('PROJECT_VERSION', 'osCommerce 2.2-MS2'); //released after July/2003
define('PROJECT_VERSION', 'osCommerce Online Merchant v2.2 RC1'); //released March/2007
define('PROJECT_VERSION', 'osCommerce 3.xxx'); //not released for general use

The versions before MS2 are not compatible with MS2, which is the main version is use. Between MS2 and RC1, there were two patch updates. There isn't a version number for those patches (in the files) so you have to compare file content to see if they are installed. First, download the patches from here. Extract the contents and compare a few of the files with those in your shop. If your shop has them installed, then you probably have the latest MS2 version.
Jack

Fantastic post, as always, Jack.

I would like to suggest the following to finish this off.

After
If your shop has them installed, then you probably have the latest MS2 version.
Add
Check that the bugfixes to the patch have been done.

In this case, you could change define('PROJECT_VERSION', 'osCommerce 2.2-MS2');
to
define('PROJECT_VERSION', 'osCommerce 2.2-MS2 with modified August 2006 patch.');

Edited by Coopco, 16 November 2007 - 01:29 PM.



The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#-17 ONLINE   Jack_mcs

Jack_mcs
  • Members
  • 25,316 posts

Posted 16 November 2007 - 01:43 PM

Thanks for mentioning that. If the contribution I mentioned is used for the patches, it changes the version string. And it should be used over the original patch files since thre is a mistake in those.

Jack

#-16   jgarite

jgarite
  • Members
  • 152 posts

Posted 29 January 2008 - 08:10 PM

Thanks! You just saved me a lot of time  :lol:

#-15   tubarao21

tubarao21
  • Members
  • 68 posts

Posted 11 February 2008 - 11:57 AM

Unfortunately, i still don't know my version.

What i have in my application_top.php is:

// for internal use until final v1.0 version is ready
  define('PROJECT_VERSION', 'Preview Release 2.1');

I need to know my version because i'm trying to install a PayPal contribution. I need to have this information so i can choose a contribution that can be compatible with my OsCommerce site.


Thank you for your attention ;)

#-14   Coopco

Coopco
  • Members
  • 9,557 posts

Posted 28 February 2008 - 02:33 PM

View Posttubarao21, on Feb 11 2008, 10:57 PM, said:

Unfortunately, i still don't know my version.

What i have in my application_top.php is:

// for internal use until final v1.0 version is ready
  define('PROJECT_VERSION', 'Preview Release 2.1');

I need to know my version because i'm trying to install a PayPal contribution. I need to have this information so i can choose a contribution that can be compatible with my OsCommerce site.
Thank you for your attention ;)
It looks like it is very, very old, prior to
define('PROJECT_VERSION', 'osCommerce 2.2-MS1'); //released prior to July/2003

You would be better starting from scratch and install the latest.


The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#-13 ONLINE   Jack_mcs

Jack_mcs
  • Members
  • 25,316 posts

Posted 28 February 2008 - 04:56 PM

View Posttubarao21, on Feb 11 2008, 06:57 AM, said:

Unfortunately, i still don't know my version.

What i have in my application_top.php is:

// for internal use until final v1.0 version is ready
  define('PROJECT_VERSION', 'Preview Release 2.1');

I need to know my version because i'm trying to install a PayPal contribution. I need to have this information so i can choose a contribution that can be compatible with my OsCommerce site.
Thank you for your attention ;)
As Leslie mentioned, it is quite old. It is probably a version from 2002.  It most likely doesn't even have the code fixes that the final release of MS1 had and will not be compatible with many contributins. You should scrap it. It will only cause problems and there will be little support from it here since most won't have that version.

Jack

#-12   cookiebob

cookiebob
  • Members
  • 20 posts

Posted 02 June 2008 - 07:06 AM

Hi

I can’t say how useful I have found this topic.

I have just checked my version and found I am running  2.2-MS2.

This seems to be the minimum requirement.

I guess it would make sense to add the two “bug fixes” but I can’t seem to find them.

Can somebody point me in the right direction, or am I worrying too much and the version I have is sufficient ?

Thanks

Bob

#-11   Coopco

Coopco
  • Members
  • 9,557 posts

Posted 02 June 2008 - 07:33 AM

View Postcookiebob, on Jun 2 2008, 05:06 PM, said:

Hi

I can’t say how useful I have found this topic.

I have just checked my version and found I am running  2.2-MS2.

This seems to be the minimum requirement.

I guess it would make sense to add the two “bug fixes” but I can’t seem to find them.

Can somebody point me in the right direction, or am I worrying too much and the version I have is sufficient ?

Thanks

Bob
Jack posted the link in his first post in this thread.


The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#-10   bobsi18

bobsi18
  • Members
  • 438 posts

Posted 23 June 2008 - 01:30 PM

Hi Jack, thanks for the handy hint on where to find that information...

I am in the process of trying to figure out what version I have - I know it's "osCommerce 2.2-MS2", am trying to figure out if it's been patched or not.  Provided it's had both patches applied, is it worth upgrading to osCommerce Online Merchant v2.2 RC1?  For security reasons? (I'm happy with the way contributions etc are interacting on my site).

Thanks for your time!

#-9   bobsi18

bobsi18
  • Members
  • 438 posts

Posted 23 June 2008 - 01:46 PM

Hmmm, so it appears I don't have any of the patches added (even though I could have sworn I put one on a while ago...)

Anyway, given that - should I apply the patches, or should I try and update to v2.2 RC1?

Thanks for any advice :)

#-8 ONLINE   Jack_mcs

Jack_mcs
  • Members
  • 25,316 posts

Posted 23 June 2008 - 10:52 PM

View Postbobsi18, on Jun 23 2008, 09:46 AM, said:

Hmmm, so it appears I don't have any of the patches added (even though I could have sworn I put one on a while ago...)

Anyway, given that - should I apply the patches, or should I try and update to v2.2 RC1?

Thanks for any advice :)
The instructions for RC1 says the patches for MS2 have to already be installed, although I think, at least, some of them are in that update. To be safe you would have to install all of the MS2 patches. I, personally, wouldn't bother upgrading to RC2 from an MS2 shop unless there was a specific reason to do so.

Jack

#-7   bobsi18

bobsi18
  • Members
  • 438 posts

Posted 24 June 2008 - 12:13 AM

View PostJack_mcs, on Jun 24 2008, 08:52 AM, said:

The instructions for RC1 says the patches for MS2 have to already be installed, although I think, at least, some of them are in that update. To be safe you would have to install all of the MS2 patches. I, personally, wouldn't bother upgrading to RC2 from an MS2 shop unless there was a specific reason to do so.

Jack

Thanks for your quick reply Jack, you really are a credit to this forum.  That's what I was thinking in response to RC2 (that it's not worth bothering to upgrade), the shop is working as it should, despite a huge number of contributions - don't want to stuff that up!

Okay, off to apply these patches, wish me luck :)

#-6   mark1979

mark1979
  • Members
  • 4 posts

Posted 26 June 2008 - 02:55 PM

Hi Lads ,
I cannot seem to find any of that info ! can you help !!

#-5   Coopco

Coopco
  • Members
  • 9,557 posts

Posted 01 July 2008 - 03:38 AM

View Postmark1979, on Jun 27 2008, 12:55 AM, said:

Hi Lads ,
I cannot seem to find any of that info ! can you help !!
What info is that?


The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#-4   DavidR

DavidR
  • Members
  • 198 posts

Posted 21 July 2008 - 11:30 AM

View PostJack_mcs, on Jun 23 2008, 06:52 PM, said:

The instructions for RC1 says the patches for MS2 have to already be installed, although I think, at least, some of them are in that update. To be safe you would have to install all of the MS2 patches. I, personally, wouldn't bother upgrading to RC2 from an MS2 shop unless there was a specific reason to do so.

Jack
It looks to me like a number of RC1+ patches are due to php5/MySQL5 compatibility, so at least some of them should probably be added?  I'm about to upgrade a few MS2 stores from June 2005 to accommodate the new platform, so I was just looking into this.

Thanks

#-3 ONLINE   Jack_mcs

Jack_mcs
  • Members
  • 25,316 posts

Posted 21 July 2008 - 01:57 PM

View PostDavidR, on Jul 21 2008, 07:30 AM, said:

It looks to me like a number of RC1+ patches are due to php5/MySQL5 compatibility, so at least some of them should probably be added?  I'm about to upgrade a few MS2 stores from June 2005 to accommodate the new platform, so I was just looking into this.

Thanks
Those patches are available in the MS2 updates so there's no reason to update to RC2 just for that.

Jack

#-2   urte

urte
  • Members
  • 25 posts

Posted 21 August 2008 - 02:02 PM

Ok, i have found my version 2.2 MS2 it is, was not sure if it was patched,
so downloaded the patches from the link provided above and unzipped.

Rather than start comparing whole files I thought I would look at the database changes required and it looks as if these are already done (see below)

required by update patch:
ALTER TABLE whos_online MODIFY COLUMN last_page_url VARCHAR(255) NOT NULL;
ALTER TABLE customers MODIFY COLUMN customers_default_address_id INTEGER;
ALTER TABLE customers_basket MODIFY COLUMN final_price DECIMAL(15,4);

found in my database:
`whos_online` (
  `customer_id` int(11) default NULL,
  `full_name` varchar(64) NOT NULL,
  `session_id` varchar(128) NOT NULL,
  `ip_address` varchar(15) NOT NULL,
  `time_entry` varchar(14) NOT NULL,
  `time_last_click` varchar(14) NOT NULL,
`last_page_url` varchar(255) NOT NULL
)

`customers_basket` (
  `customers_basket_id` int(11) NOT NULL auto_increment,
  `customers_id` int(11) NOT NULL default '0',
  `products_id` tinytext NOT NULL,
  `customers_basket_quantity` int(2) NOT NULL default '0',
  `final_price` decimal(15,4) default NULL,
  `customers_basket_date_added` varchar(8) default NULL,
  PRIMARY KEY  (`customers_basket_id`)

`customers`
--

CREATE TABLE IF NOT EXISTS `customers` (
  `customers_id` int(11) NOT NULL auto_increment,
  `customers_gender` char(1) NOT NULL,
  `customers_firstname` varchar(32) NOT NULL,
  `customers_lastname` varchar(32) NOT NULL,
  `customers_dob` datetime NOT NULL default '0000-00-00 00:00:00',
  `customers_email_address` varchar(96) NOT NULL,
  `customers_default_address_id` int(11) default NULL,
  `customers_telephone` varchar(32) NOT NULL,
  `customers_fax` varchar(32) default NULL,
  `customers_password` varchar(40) NOT NULL,
  `customers_newsletter` char(1) default NULL,
  PRIMARY KEY  (`customers_id`)
)


can I safely say i have the patches installed??
many thanks in advance for your time

Urte

#-1 ONLINE   Jack_mcs

Jack_mcs
  • Members
  • 25,316 posts

Posted 21 August 2008 - 02:56 PM

View Posturte, on Aug 21 2008, 10:02 AM, said:

can I safely say i have the patches installed??
many thanks in advance for your time
No.

Jack

#0   ashras99

ashras99
  • Members
  • 65 posts

Posted 21 August 2008 - 03:50 PM

I am using a templatemonster template on MS2.2 which is installed in July 2007 from cpanel.

I checked the update-20060817.txt file and try to match the codes with installed file, in some files changes are installed and in some files nothing... so what i have to do... make all the changes? Hope this will not create any problem... by changing those unchanged codes.

Hope only applying update-20060817.txt changes complete both the patches?

What to do with the sql and other files in the folders? Those are original files, i think and no need to do anything with those.

Please reply to my problem. Thanks