Forums / General / Call to a member function attribute() on a non-object
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?