Forums / Install & configuration / ezwebinupgrade.php crash with fatal error

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