Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
None
-
None
Description
In an article-class I have an attribute "publish" (Datatype: Date and time). If a date is added when writing an article the object is hidden until it reaches that date.
A workflow then waits (ezwaituntildate) for the date and an unhide-event unhides the article when it's time.
The workflow-cronjob runs every 5 minutes.
This is all fine and dandy but not in the following scenario:
- An article is made with a publish-date one week from now.
- My editorial staff edits the article 11+ times the next days.
- In content.ini we have: DefaultVersionHistoryLimit=10
Every time the article is edited, and a new version is made, it gets added to the "ezworkflow_process"-table in the DB.
When the week has gone, and it's time to unhide the article, the workflow fails:
PHP Fatal error: Call to a member function attribute() on a non-object in /kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildatetype.php on line 63 Fatal error: eZ Publish did not finish its request
line 62: $version = $object->version( $parameters['version'] ); line 63: $objectAttributes = $version->attribute( 'contentobject_attributes' );
The "ezworkflow_process"-table has a record of version 1 but that version is no longer available because the article has been edited 11+ times...
This happends in version 4.4
Forumthread: http://share.ez.no/forums/setup-design/workflow-stops-because-of-non-exisiting-version