ezwebinupgrade.php crash with fatal error

Author Message

Horst Lindlbauer

Monday 23 March 2009 4:57:35 am

Tried to upgrade from 4.0.1 to 4.1 (with ezc), everything works fine except executing
php bin/php/ezwebinupgrade.php --to-version=1.4-0 --url=http://packages.ez.no/ezpublish/4.1/4.1.0
crashes with following error:

Installing package 'ezwebin_classes'
PHP Fatal error: Call to a member function isClassAttributeRemovable() on a non-object in /Library/WebServer/Documents/ezpublish-4.1.0/kernel/classes/ezcontentclass.php on line 843

Tried also regenerating autoloads and clearing all caches before. It is also no permission settings problem.
Any help appreciated.

---------------------------------------
http://www.lbm-services.de

Ɓukasz Serwatka

Thursday 26 March 2009 1:17:45 am

Hi,

Can you please add some test code in the kernel/classes/ezcontentclass.php

In line 840 add

        var_dump($this->Identifier); //Dump class identifier before fatal error

Last class identifier before crash will give class which importing fail.

Once you have this identifier in line 845 add code:

            if( $this->Identifier == 'class_identifier_which_fail' ) {
                var_dump($dataType);
            }

Change "class_identifier_which_fail" to class identifier which fail. Then paste here all dumps for the class. We will see which attribute crashes.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:37:55
Script start
Timing: Jan 18 2025 11:37:55
Module start 'layout'
Timing: Jan 18 2025 11:37:55
Module start 'content'
Timing: Jan 18 2025 11:37:55
Module end 'content'
Timing: Jan 18 2025 11:37:55
Script end

Main resources:

Total runtime0.0180 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.1484152.6406
Module start 'layout' 0.00690.0034 740.789139.4766
Module start 'content' 0.01030.0054 780.265689.5234
Module end 'content' 0.01570.0022 869.789130.3047
Script end 0.0179  900.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003016.6474140.0002
Check MTime0.00126.5285140.0001
Mysql Total
Database connection0.002111.517010.0021
Mysqli_queries0.002715.037230.0009
Looping result0.00000.144610.0000
Template Total0.00189.910.0018
Template load0.00105.423610.0010
Template processing0.00084.462010.0008
Override
Cache load0.00073.944710.0007
General
dbfile0.00031.391480.0000
String conversion0.00000.045140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs