| Monday 06 September 2010 1:34:08 am 
                                                                
                                                                 I set up an installation of Exponential 4.3 with a workflow to approve user registration. To do this I configure a crontab, but if my admin user doesn't approve Item and delete it the cronjobs goes to crash with this message:  Fatal error: Call to a member function contentAttribute() on a non-object in /var/www/vhosts/technolift.com/httpdocs/kernel/classes/collaborationhandlers/ezapprove/ezapprovecollaborationhandler.php on line 107 I solved this problem patching ezapprovecollaborationhandler.php by inserting a control on static function contentObjectVersion( $collaborationItem ) : 
from this:static function contentObjectVersion( $collaborationItem ) {
 $contentObjectID = $collaborationItem->contentAttribute( 'content_object_id' ); $contentObjectVersion = $collaborationItem->contentAttribute( 'content_object_version' );
 return eZContentObjectVersion::fetchVersion( $contentObjectVersion, $contentObjectID );
 }
 to:  
 static function contentObjectVersion( $collaborationItem ) { if(!empty($collaborationItem)) {
 $contentObjectID = $collaborationItem->contentAttribute( 'content_object_id' ); $contentObjectVersion = $collaborationItem->contentAttribute( 'content_object_version' );
 return eZContentObjectVersion::fetchVersion( $contentObjectVersion, $contentObjectID );
 }
 }
 
I'm sorry for my english...Bye
 Michele
 |