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.
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.
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
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.