Call to a member function on a non-object in ezstep_create_sites.php install error

Author Message

Bjørn Torkel Dahl

Wednesday 24 November 2004 6:34:05 am

While using the wizard to set up eZ 3.4.4 (i had the same problem with 3.4.2) everything works smoothly, until the very end and you are done with the wizard, when the action dies with the following error message:

<i>-----
Fatal error: Call to a member function on a non-object in /var/www/nteu/kernel/setup/steps/ezstep_create_sites.php on line 623
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.
-----</i>

the code around here is as follows, starting at line 620

<i>-----
if ( trim( $admin['first_name'] ) or trim( $admin['last_name'] ) )
{
$dataMap =& $userObject->attribute( 'data_map' );
$dataMap['first_name']->setAttribute( 'data_text', $admin ['first_name'] );
$dataMap['first_name']->store();
$dataMap['last_name']->setAttribute( 'data_text', $admin['last_name'] );
$dataMap['last_name']->store();
$userObject->store();
$publishAdmin = true;
}
-----</i>

and since I was in extreme lack of time, the fix was to comment a few of the lines:

<i>-----
if ( trim( $admin['first_name'] ) or trim( $admin['last_name'] ) )
{
$dataMap =& $userObject->attribute( 'data_map' );
#$dataMap['first_name']->setAttribute( 'data_text', $admin ['first_name'] );
#$dataMap['first_name']->store();
#$dataMap['last_name']->setAttribute( 'data_text', $admin['last_name'] );
#$dataMap['last_name']->store();
$userObject->store();
$publishAdmin = true;
}
-----</i>

whereafter things actually worked. I realize this is an ugly fix. I present this information with the hope that it might be useful for someone, and that someone might know what causes this.

My system spec:

GNU/Linux Debian 3.0 testing with
PHP 4.3.9-1
MySQL 4.0.22-log
Apache/1.3.31

--
btd

Łukasz Serwatka

Wednesday 24 November 2004 6:37:45 am

Hi,

I think that it`s a bug

Look at this bug
http://www.ez.no/community/bug_reports/problem_with_instalation_fatal_error

I had the same problem too

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

Łukasz Serwatka

Wednesday 24 November 2004 6:38:50 am

ech, sorry for double posts :/

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

Bjørn Torkel Dahl

Wednesday 24 November 2004 9:10:14 am

This is a far to critical error to have been ignored by developers, so if it is a bug, it is almost certainly enviroment dependable. Then the wuestion is wither its an eZ bug or a bug somewhere in the surroundings.

My quiestion is then what must be changed in my enviroment for this to work properly.

For those of you that are interested, it seems like my quickfix utterly fuck up stuff since no name info is stored for the admin user. I'm not sure why yet, but my installation does not display any forms that also displays user(name) info. In this case.. all forms i need. I've yet to discover weither this is another error though.

--
btd

Bjørn Torkel Dahl

Wednesday 15 December 2004 7:00:59 am

It might seem that the problem was that MySQL barfed because the system tmp dir was not globally writable.

The 3.5 install has a check for this (as long as the php tmp dir is the system tmp dir).

--
btd

--
btd

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