Forums / General / Identifying older EZ Publish versions for upgrade purposes?

Identifying older EZ Publish versions for upgrade purposes?

Author Message

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

Paul Wilson

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' );

eZ debug

Timing: Jan 19 2025 21:16:23
Script start
Timing: Jan 19 2025 21:16:23
Module start 'content'
Timing: Jan 19 2025 21:16:24
Module end 'content'
Timing: Jan 19 2025 21:16:24
Script end

Main resources:

Total runtime0.7092 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.2031180.8047
Module start 'content' 0.00550.6963 770.0078602.7031
Module end 'content' 0.70180.0072 1,372.710946.0391
Script end 0.7091  1,418.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4311140.0002
Check MTime0.00140.1912140.0001
Mysql Total
Database connection0.00080.108710.0008
Mysqli_queries0.652892.0573630.0104
Looping result0.00090.1260610.0000
Template Total0.676595.420.3383
Template load0.00210.301520.0011
Template processing0.674495.093220.3372
Template load and register function0.00020.027610.0002
states
state_id_array0.00150.215210.0015
state_identifier_array0.00210.291120.0010
Override
Cache load0.00180.2506250.0001
Sytem overhead
Fetch class attribute can translate value0.00070.092930.0002
Fetch class attribute name0.00210.296070.0003
XML
Image XML parsing0.00520.735430.0017
class_abstraction
Instantiating content class attribute0.00000.002280.0000
General
dbfile0.00680.9602290.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs