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.

eZ debug

Timing: Jan 18 2025 19:12:32
Script start
Timing: Jan 18 2025 19:12:32
Module start 'layout'
Timing: Jan 18 2025 19:12:32
Module start 'content'
Timing: Jan 18 2025 19:12:34
Module end 'content'
Timing: Jan 18 2025 19:12:34
Script end

Main resources:

Total runtime1.7098 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.0073 588.4141152.6875
Module start 'layout' 0.00730.0026 741.101639.6172
Module start 'content' 0.00991.6984 780.7188586.0469
Module end 'content' 1.70830.0015 1,366.765616.0313
Script end 1.7097  1,382.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.1939160.0002
Check MTime0.00140.0838160.0001
Mysql Total
Database connection0.00100.057410.0010
Mysqli_queries1.620794.7900630.0257
Looping result0.00060.0368610.0000
Template Total1.673697.920.8368
Template load0.00240.138920.0012
Template processing1.671297.741420.8356
Template load and register function0.00020.013110.0002
states
state_id_array0.00110.062910.0011
state_identifier_array0.00190.110020.0009
Override
Cache load0.00210.1241630.0000
Sytem overhead
Fetch class attribute can translate value0.00100.056320.0005
Fetch class attribute name0.00110.064670.0002
XML
Image XML parsing0.00610.356320.0030
class_abstraction
Instantiating content class attribute0.00000.0014100.0000
General
dbfile0.00580.3382240.0002
String conversion0.00000.000440.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs