Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20234

workflow stops because of non-exisiting version

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • Legacy > Workflows
    • 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
      
      ezwaituntildatetype.php
      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            6a8736be-6244-47eb-9f44-db900ee3975e@accounts.ibexa.co Jon Arvid Ludviksen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: