• Resolved jerrytchan

    (@jerrytchan)


    When re-ordering a CPT, I get the following PHP error in Ajax response:

    “message: ‘Undefined array key “nonce”‘, file: ‘wp-content/plugins/intuitive-custom-post-order/intuitive-custom-post-order.php’,”

    I’m visually able to re-order objects in the list, but the order isn’t actually updated on the backend. If I refresh the page, the original order remains.

    • This topic was modified 1 year, 9 months ago by jerrytchan. Reason: Added image of error for more details
Viewing 9 replies - 1 through 9 (of 9 total)
  • @jerrytchan what version of WordPress version do you currently use? Made a short test with blank wordpress installation and it worked for me – also with cpts. But would happy to reproduce the issue ??

    • This reply was modified 1 year, 9 months ago by Timo H.
    Thread Starter jerrytchan

    (@jerrytchan)

    WordPress 6.1.1 and plugin v3.1.4. I do also use WP Rocket and Docket Cache plugins, but I don’t think that would cause any issues on the admin side.

    Have installed a sandbox on instawp.com and then installed the plugin v3.1.4. After that at the Intuitive Custom Post Order Settings page I selected “All Check” and pushed “Save”. Made some then some tests and did not went in trouble. Maybe the problem has to do with another plugin or something else. I would love to reproduce the problem. Do you get an error message within the browser console after you disabled all other plugins?

    • This reply was modified 1 year, 9 months ago by Timo H.
    • This reply was modified 1 year, 9 months ago by Timo H.

    @jerrytchan an update was released today. Can Test if it will work for you? Pleas also clear your browser cache to be before testing.

    Thread Starter jerrytchan

    (@jerrytchan)

    Update seems to have resolved the issue for me. Thanks for letting me know!

    I am running into the same issue where you drag and drop and refresh the page, and the change didn’t take affect. I have tried the following:

    • Disabled all other plugins and changed to Twenty Twenty-Three theme.
      • Issue persisted
    • Checked the web console in the browser after dragging
      • saw no output.
    • Did a fresh WordPress install with Just CPT UI (the way I’m creating the post type), imported my config for the CPT.
      • Did not see the issue.
    • I changed to Post Types Order plugin and it works as expected.

    So my issue must be something with the data in my database and a bit of an edge case.??

    So for others that run into this, maybe try Post Types Order and see if that one works?

    @rtvenge I had the exact same issues you did. I started with Simple Custom Post Order then switched to Intuitive Custom Post Order with the same results. After finding your post I switched to Post Types Order and the order is saving for me.

    This might be a long-shot, but are you using WP Engine?

    @msartori I’m actually using SpinupWP on a Linode server. I’m not sure the server is our issue, though, as I was also able to replicate locally with Lando.

    Good to know Post Types Order worked for you as well. Maybe the plugin author of this plugin could see what they are doing. It sure seemed something changed in Core because there was a bit of time where almost all of these plugins broke for custom post types.

    Thanks @rtvenge. I have the same feeling about something changing in core. I did notice a setting in CPT UI that I thought might change the behavior but it didn’t make a difference in my case. Maybe it will make a difference for you.

    https://share.getcloudapp.com/7KuzmNeb

    • This reply was modified 1 year, 8 months ago by Matt Sartori.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Order Not Updating with CPT’ is closed to new replies.