Forums / General / Identifying older EZ Publish versions for upgrade purposes?
Paul Wilson
Wednesday 07 December 2005 2:48:23 am
Hi,
I'm trying to upgrade the database of an older EZ Publish site (somewhere around version 3.3 or 3.4), but I don't know what version it is. Because I can no longer run the site (PHP server upgrade), I can't view the site to find out what version it is to apply the database update files that are a part of the EZ Publish distribution.
Identifying newer versions of EZ Publish seems to be easy enough - its in the ezsite_data table of the database, but this does not exist on the database I've got.
Does anyone know how to identify the version number of a 3.3/3.4 site by looking at site or database content?
Thanks
Björn Dieding@xrow.de
Wednesday 07 December 2005 4:24:07 am
you have 2 options both may return the more or less correct version
look into the file lib/version.php
or
look into the table ezsite_data there is the version string saved there that gets applied each time you run update scripts
Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs Looking for hosting? http://hostingezpublish.com ----------------------------------------------------------------------------- GMT +01:00 Hannover, Germany Web: http://www.xrow.com/
Mark Marsiglio
Wednesday 07 December 2005 4:27:27 am
It is a bit of trial and error, but you could look at the upgrade scripts and see which tables have been added at each level of upgrade, working backwards until the scripts would not make any changes to the DB.
Also, we made a change to some of our sites that were hosted on a server that was upgraded to PHP 4.4 unexpectedly, and got them to run again by suppressing the errors. I will try to find out what changes we made and post them.
http://www.thinkcreative.com Turning Ideas Into Strategic Solutions
Wednesday 07 December 2005 1:26:52 pm
Thanks for your help Björn and Mark,
I used Björn's approach of checking thte contents of the file lib/version.php
For anyone else who strikes this problem, the version.php file contains information like the following immediately below the header/copyright message:
\brief contains the eZ publish SDK version. define( "EZ_SDK_VERSION_MAJOR", 3 ); define( "EZ_SDK_VERSION_MINOR", 0 ); define( "EZ_SDK_VERSION_RELEASE", 2 ); define( "EZ_SDK_VERSION_ALIAS", '3.0 release 2' );