• Resolved drtonyb

    (@drtonyb)


    On updating a form the plugin throws an error:

    WP_Query was called incorrectly. The “publish” order status is no more in WooCommerce 2.2! You should use the new WooCommerce post_status instead, read more… Please see Debugging in WordPress for more information. (This message was added in version WooCommerce 2.2.) in C:\Server\www\public_html\wordpress\wp-includes\functions.php on line 4136

    Since this was changed in woocommerce in 2014 and it is now 2017, I’m surprised that it has not been addressed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @drtonyb,

    I believe what’s happening here is that we’re querying for all posts (from pages/posts and CPTs – everything except attachments, revisions, and nav menu items) in order to create a dropdown of potential pages to redirect to. If you have WooCommerce installed, we’re trying to query the shop_order CPT with a status of publish. I’m not sure how it’s taken us this long to see this error (I still can’t get the error to show up in any of my environments), but it’s minor and shouldn’t have any effect on the plugin’s functionality.

    What I’m going to do is (1) manually exclude shop_order CPTs from the query and (2) add a filter that will allow users going forward to exclude any CPTs they want.

    Thanks for bringing this to our attention and sorry about the error – I hope it doesn’t discourage your use of the plugin. It should be fixed today.
    Cheers,
    Kevin.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @drtonyb,

    I just pushed a new release of this plugin (v6.3.6) that should fix this issue.

    Please let me know if this fixed the issue (because, as I said before, I’m not able to reproduce it).

    Cheers,
    Kevin.

    Thread Starter drtonyb

    (@drtonyb)

    Thanks for the prompt fix Kevin.

    You say that you can’t reproduce the error. Are you running your development system in WP_DEBUG mode? If so, it should be logged in the usual php error log when the edit form page is loaded or refreshed.

    I run my development environment in WP_DEBUG mode and often encounter errors in plugins. I’m also seeing another error in this plugin which I’ll report separately.

    Tony

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @drtonyb,

    Yeah I’m running in WP_DEBUG mode (always); I’m wondering if it’s because my orders aren’t legit? I just created blank orders and saved them to get the data in the DB. No big deal. As long as the error is not being thrown anymore.

    Thanks for working with us,
    Kevin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Incompatible with WooCommerce 2.2’ is closed to new replies.