Support » Plugin: WP Document Revisions » Unable to save Workflow State in WP 3.5.1

  • Fresh install of WordPress 3.5.1 with WP Document Revisions 1.3.5, no other plugins installed, Twenty Twelve theme.

    When I select a Workflow State from the Current State dropdown menu, my choice is not saved when the document is saved or published, and the All Documents list shows an empty Workflow State next to each document. When I return to edit a document, the Workflow State dropdown menu has defaulted to the first (empty) choice.

    However if I click a document’s Quick Edit link in the All Documents list and type a value in the Workflow States text area, this value is saved when I click Update.

    Used with Edit Flow (0.7.6) this issue doesn’t occur: Edit Flow’s custom statuses appear within WP Document Revisions and behave as expected, replacing WP Document Revisions Workflow States.

    http://wordpress.org/extend/plugins/wp-document-revisions/

Viewing 7 replies - 1 through 7 (of 7 total)
  • I hade the same problem today, but after some debugging I have found a solution until the author releases a fix:

    1. Open the file wp-document-revisions\includes\admin.php
    2. Go to line 982
    3. Change the or-statement ( || ) to an and-statement ( && )
    The row should look like this when you’re ready:
    if ( !isset( $old[0] ) && $old[0]->term_id == $_POST['workflow_state'] )

    Thanks for posting a solution – I can confirm that making the change resolves the issue and allows a Workflow State to be saved when editing a document; hopefully a plugin update will provide a permanent fix.

    This did not work for me…

    Phil C

    (@philclothier)

    FWIW, this did work for me, thanks

    No idea why I can’t get anything working with this plugin… Usually I am the one that doesn’t see the issues.

    What version of PHP are people using? I have almost the latest (whatever was the latest 3 months ago) running on IIS.

    Also did other people have a previous version of the plugin installed first? Wondering if the latest is working based on residuals.

    Phil C

    (@philclothier)

    Hi djmceltic,

    I’m on a clean install of WP 3.5.1 with version 1.3.5 of the plugin.

    PHP 5.3.23 on Apache 2.2.24

    I’m also having some real headaches with this plugin. I really hope they can be resolved, it shows so much promise but seems to have some worrying loose ends to tie up.

    With WordPress 3.5.1 with WP Document Revisions 1.3.5 this fixes the problem with save Workflow State. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Unable to save Workflow State in WP 3.5.1’ is closed to new replies.