Forums / Install & configuration / Problem upgrading ezwebin 1.2 to 1.3

Problem upgrading ezwebin 1.2 to 1.3

Author Message

Mariusz Scisel

Tuesday 26 February 2008 6:50:00 am

Hi
I have an error while executing ezwebinupgrade.php script when upgrading from version 1.2 to 1.3

Fatal error: Call to undefined function eZSiteOverrideINISettings() in /home/site/WWW1/ezwebinupgrade.php on line 123

This is the output:

php ezwebinupgrade.php -d --package='ezwebin_site ezwebin_classes ezwebin_extension ezwebin_design_blue ezwebin_design_gray' --auto-mode=on --package-dir=tmp/ezwebin -ladmin -ppass

#!/usr/bin/env php
Notice: No siteaccess provided, will use default siteaccess
Warning: Processing in auto-mode:
- packages will be downloaded to 'tmp/ezwebin';
- packages will be imported to 'var/storage/packages/ez_systems';
- installing of existing classes will be skipped;
- all files(extesion, design, downloaded and imported packages) will be overwrit
ten;
Continue? [y/n]: y
Configuring...
Downloading...
ezwebin_site
ezwebin_classes
ezwebin_extension
ezwebin_design_blue
ezwebin_design_gray
Importing...
ezwebin_site
ezwebin_classes
ezwebin_extension
ezwebin_design_blue
ezwebin_design_gray
Installing...
Installing package 'ezwebin_site'
Installing package 'ezwebin_classes'
Installing package 'ezwebin_extension'
Installing package 'ezwebin_design_blue'
Installing package 'ezwebin_design_gray'
Updateting content classes...
Updating INI-files...
Please specify the eZ webin siteaccesses on your site (separated with space, for example eng nor): pol eng

Fatal error: Call to undefined function eZSiteOverrideINISettings() in /home/site/WWW1/ezwebinupgrade.php on line 123</b>

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.
Notice: (eZMySQLDB::query(0.000 ms) query number per page:0)
SET NAMES 'utf8'

Notice: ()
Downloading file 'tmp/ezwebin/ezwebin_site.ezpkg' from http://packages.ez.no/ezpublish/4.0/4.0.0/ezwebin_site.ezpkg

Notice: ()
Downloading file 'tmp/ezwebin/ezwebin_classes.ezpkg' from http://packages.ez.no/ezpublish/4.0/4.0.0/ezwebin_classes.ezpkg

Notice: ()
Downloading file 'tmp/ezwebin/ezwebin_extension.ezpkg' from http://packages.ez.no/ezpublish/4.0/4.0.0/ezwebin_extension.ezpkg

Notice: ()
Downloading file 'tmp/ezwebin/ezwebin_design_blue.ezpkg' from http://packages.ez.no/ezpublish/4.0/4.0.0/ezwebin_design_blue.ezpkg

Notice: ()
Downloading file 'tmp/ezwebin/ezwebin_design_gray.ezpkg' from http://packages.ez.no/ezpublish/4.0/4.0.0/ezwebin_design_gray.ezpkg

Warning: (PHP)
Undefined index:  collection in /home/site/WWW1/kernel/classes/packagehandlers/ezfile/ezfilepackagehandler.php on line 55

Warning: (PHP)
Undefined index:  collection in /home/site/WWW1/kernel/classes/packagehandlers/ezfile/ezfilepackagehandler.php on line 55

No timing points defined
Group ini_load:
Load cache: 0.0126 sec (0.0225%), 0.0014 avg sec (9)
FindInputFiles: 0.0038 sec (0.0069%), 0.0004 avg sec (9)
Group Mysql Total:
Mysql_queries: 1.0958 sec (1.9593%), 0.0007 avg sec (1569)
Looping result: 0.0293 sec (0.0525%), 0.0001 avg sec (579)
Group class_abstraction:
Instantiating content class attribute: 0.0259 sec (0.0463%), 0.0000 avg sec (730)

Total script time: 55.9249 sec

eZ Publish 4.0 upgraded from 3.10
ezwebin upgrade from 1.2 to 1.3

System: FreeBSD
PHP: 5.2.5
Apache: 2.2.x

It seems to me that ezwebinupgrade.php isn't comatible with ezwebin_site package 1.3, downloaded by the script to var/storage/packages/ezwebin_site/settings/ini-site.php, Where is the missing function eZSiteImageINISettings(). Maybe it is located elsewhere ? Have I run ezwebin upgrade script or just copy new ezwebin 1.3 to extension/ezwebin location ?

Mariusz
Help needed...

Olivier TURPIN

Sunday 18 May 2008 1:48:09 pm

Hello,

I am having the same trouble. Anyone knows the solution ?

I wonder if the script is the right version delivered in the 4.0 archive ? I encounterd several problems with that script:
-> default downloaded packages seems to be 3.9. 4.0 archive must be forced via -url.
-> default list of packages is wrong : design is replaced by design_gray and design_blue
-> there are still comments on ezwebin 1.2 : "This script will upgrade ezwebin 1.1-1 to 1.2-0\n"
-> One piece of code was throwing error on function $this->setting (I suppose it should be $installer->setting ?) in function updateObjects()

$installer = new eZWebinInstaller();

...
$result = $installer->updateContentObjectAttributes( array( 'object_id' => $this->setting( 'template_look_object_id' ),
'attributes_data' => $templateLookData ) );

return $result;

-> And now : Fatal error: Call to undefined function eZSiteOverrideINISettings();

thx for info !

Mariusz Scisel

Tuesday 20 May 2008 6:05:29 am

Hi Olivier
For first try this for Help php.exe ezwebinupgrade.php -h (on windows machine)

Did you try parameter: --to-version=1.3-0 ?
I found something like this and it seems to me it works:

(CMD)
d:\WebServer\PHP\php.exe d:\home\katalog\WWW\bin\php\ezwebinupgrade.php -s pol -d --no-colors --auto-mode=on --to-version=1.3-0 --package-dir=d:\tmp\ezwebin -l admin -p adminpass

"pol" - your main siteaccess
"--auto-mode=off" - if you don't like automode
"--package-dir=d:\tmp\ezwebin" - location for packages downloaded manualy
etc.

Simplest version

d:\WebServer\PHP\php.exe d:\home\katalog\WWW\bin\php\ezwebinupgrade.php -s pol auto-mode:off to-version=1.3-0

Of course change the paths of [php] (In cli mode) and [ezwebinupgrade.php] to proper locations.

Mariusz

Olivier TURPIN

Thursday 22 May 2008 4:47:12 am

Hi,

Further to your advice, I re-issued the ezwebinupgrade.php command with all the parameters possible. No way, function eZSiteOverrideINISettings does not exist. I did the "grep" on the file tree of my freshly installed 4.0: no instance apart from the calling line.

Is this a bug ? Wonder how could anyone have migrated ?

Gurudutt Verma

Thursday 22 May 2008 5:59:12 am

Hi

Try to upgrade eZWebin from eZ Publish svn trunk/stable.

Still if it dosen't work then try following

mv var/storage/packages var/storage/packages.old
Clear cache
php bin/php/ezwebinupgrade.php --url=http://packages.ez.no/ezpublish/4.0/4.0.0

It should work.