Details
-
Bug
-
Resolution: Fixed
-
High
-
4.5.0
-
eZ Publish 4.5
Description
When a multiplexer workflow event associated to an approve workflow event is defined, and the object that triggers the approve event is deleted, a fatal error is generated.
Steps to reproduce
1. Define an ezapprove event and define an admin user as an approver;
2. Define a new ezmultiplexer event and choose article as class and the above ez approve worklfow as worklow children to excecute;
3. Setup this ezmutliplexer event in the trigger before publish;
4. As an editor, edit an existing article and publish it;
5. Delete the article;
6. Launch the workflow cronjob: php runcronjobs.php frequent.
The following error is generated:
Running cronjob part 'frequent' Running cronjobs/notification.php at: 11/10/2012 9:40 pm Starting notification event processing Done Completing cronjobs/notification.php at: 11/10/2012 9:40 pm Elapsed time: 00:00:00 Running cronjobs/workflow.php at: 11/10/2012 9:40 pm Checking for workflow processes PHP Fatal error: Call to a member function attribute() on a non-object in /var/www/45ezfc.com/kernel/content/ezcontentoperationcollection.php on line 626 PHP Stack trace: PHP 1. {main}() /var/www/45ezfc.com/runcronjobs.php:0 PHP 2. eZRunCronjobs::runScript() /var/www/45ezfc.com/runcronjobs.php:353 PHP 3. include() /var/www/45ezfc.com/kernel/classes/ezruncronjobs.php:74 PHP 4. eZOperationHandler::execute() /var/www/45ezfc.com/cronjobs/workflow.php:115 PHP 5. eZModuleOperationInfo->execute() /var/www/45ezfc.com/lib/ezutils/classes/ezoperationhandler.php:77 PHP 6. eZModuleOperationInfo->executeBody() /var/www/45ezfc.com/lib/ezutils/classes/ezmoduleoperationinfo.php:237 PHP 7. eZModuleOperationInfo->executeClassMethod() /var/www/45ezfc.com/lib/ezutils/classes/ezmoduleoperationinfo.php:550 PHP 8. call_user_func_array() /var/www/45ezfc.com/lib/ezutils/classes/ezmoduleoperationinfo.php:829 PHP 9. eZContentOperationCollection->copyTranslations() /var/www/45ezfc.com/lib/ezutils/classes/ezmoduleoperationinfo.php:0 Fatal error: eZ Publish did not finish its request The execution of eZ Publish was abruptly ended, the debug output is present below.