WordPress.org

Ready to get started?Download WordPress

Forums

WP Document Revisions
Unable to save Workflow State in WP 3.5.1 (8 posts)

  1. Pixelatic
    Member
    Posted 1 year ago #

    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/

  2. marxhz
    Member
    Posted 1 year ago #

    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'] )

  3. Pixelatic
    Member
    Posted 1 year ago #

    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.

  4. djmceltic
    Member
    Posted 1 year ago #

    This did not work for me...

  5. Phil C
    Member
    Posted 1 year ago #

    FWIW, this did work for me, thanks

  6. djmceltic
    Member
    Posted 1 year ago #

    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.

  7. Phil C
    Member
    Posted 1 year ago #

    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.

  8. Jonas Lundman
    Member
    Posted 10 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic