Call to a member function attribute() on a non-object

Author Message

Tony Chan

Sunday 01 August 2010 10:05:47 pm

Got an error: /kernel/classes/ezcontentobjecttreenode.php line 5691, line 97

Fatal error: Call to a member function attribute() on a non-object in kernel/classes/ezcontentobjecttreenode.php on line 5691Fatal error: eZ Publish did not finish its requestThe execution of eZ Publish was abruptly ended, the debug output is present below.

I think ezp should check if there is really an object returned before using it.

André R.

Monday 02 August 2010 12:22:30 am

Is this the line?

$object = $this->object();
$class = $object->contentClass();
$this->ClassName = $class->attribute( 'name' );

Then it means you have some kind of db inconsistency / corruption(the class the node belongs to does not exist..).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jacobi Jacobi

Monday 02 August 2010 7:38:56 pm

Is there any tools available to find out where data is inconsistent? and any way to fix this kind of errors?

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 10:42:25
Script start
Timing: Jan 18 2025 10:42:25
Module start 'layout'
Timing: Jan 18 2025 10:42:25
Module start 'content'
Timing: Jan 18 2025 10:42:26
Module end 'content'
Timing: Jan 18 2025 10:42:26
Script end

Main resources:

Total runtime0.8557 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.0391152.6406
Module start 'layout' 0.00660.0031 740.679739.4922
Module start 'content' 0.00970.8443 780.1719566.3203
Module end 'content' 0.85400.0017 1,346.492212.1250
Script end 0.8557  1,358.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3738160.0002
Check MTime0.00130.1509160.0001
Mysql Total
Database connection0.00130.154210.0013
Mysqli_queries0.806194.1974590.0137
Looping result0.00050.0641570.0000
Template Total0.821196.020.4106
Template load0.00220.254120.0011
Template processing0.818995.700320.4095
Template load and register function0.00020.021510.0002
states
state_id_array0.00090.104110.0009
state_identifier_array0.00110.128720.0006
Override
Cache load0.00180.2055130.0001
Sytem overhead
Fetch class attribute can translate value0.00070.082230.0002
Fetch class attribute name0.00110.123140.0003
XML
Image XML parsing0.00080.099230.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00090.1102170.0001
String conversion0.00000.001340.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs