Forums / Install & configuration / Call to a member function on a non-object in ezstep_create_sites.php install error

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

eZ debug

Timing: Jan 19 2025 00:24:05
Script start
Timing: Jan 19 2025 00:24:05
Module start 'content'
Timing: Jan 19 2025 00:24:05
Module end 'content'
Timing: Jan 19 2025 00:24:05
Script end

Main resources:

Total runtime0.6572 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0103 589.4375180.7734
Module start 'content' 0.01030.5157 770.2109591.2031
Module end 'content' 0.52600.1311 1,361.4141341.2969
Script end 0.6571  1,702.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.7279210.0002
Check MTime0.00170.2632210.0001
Mysql Total
Database connection0.00170.264610.0017
Mysqli_queries0.554184.31102000.0028
Looping result0.00240.35861980.0000
Template Total0.628195.620.3140
Template load0.00210.324120.0011
Template processing0.625995.240020.3130
Template load and register function0.00010.019510.0001
states
state_id_array0.00060.096510.0006
state_identifier_array0.00070.108220.0004
Override
Cache load0.00190.2966630.0000
Sytem overhead
Fetch class attribute can translate value0.00140.207230.0005
Fetch class attribute name0.00120.185770.0002
XML
Image XML parsing0.00260.391630.0009
class_abstraction
Instantiating content class attribute0.00000.0032100.0000
General
dbfile0.00691.0429350.0002
String conversion0.00000.002030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs