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:20:48 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

Bjørn Torkel Dahl

Wednesday 24 November 2004 6:33:01 am

And I realize i posted in the wrong forum.. sorry..

--
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 20 2025 08:56:46
Script start
Timing: Jan 20 2025 08:56:46
Module start 'layout'
Timing: Jan 20 2025 08:56:46
Module start 'content'
Timing: Jan 20 2025 08:56:47
Module end 'content'
Timing: Jan 20 2025 08:56:47
Script end

Main resources:

Total runtime0.8163 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.6484152.6875
Module start 'layout' 0.00570.0038 742.335939.5547
Module start 'content' 0.00950.8052 781.8906499.8281
Module end 'content' 0.81470.0015 1,281.718812.0625
Script end 0.8162  1,293.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3932160.0002
Check MTime0.00130.1537160.0001
Mysql Total
Database connection0.00100.120310.0010
Mysqli_queries0.764193.6147520.0147
Looping result0.00050.0578500.0000
Template Total0.784596.120.3923
Template load0.00200.246320.0010
Template processing0.782595.862720.3912
Template load and register function0.00020.020010.0002
states
state_id_array0.00090.107010.0009
state_identifier_array0.00080.092520.0004
Override
Cache load0.00170.2105450.0000
Sytem overhead
Fetch class attribute can translate value0.00100.122910.0010
Fetch class attribute name0.00100.124130.0003
XML
Image XML parsing0.00240.293710.0024
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00310.3779160.0002
String conversion0.00010.012340.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs