• Resolved hshah

    (@hshah)


    I’ve been trying to delete events left over from plugins I have uninstalled and I can’t actually remove them.

    Selecting them and deleting looks like it works, but they are still present.

    I’ve seen active plugins recreate their cron tasks before, so those I’m ignoring… but this is happening with deactivated and uninstalled plugins too.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This sounds like a caching issue on your site. Try deactivating any caching plugins you’ve got installed (particularly if one provides an object cache).

    Also make sure you’re running the latest WP Crontrol 1.8, I added better support for the return values that were introduced in WordPress 5.1. It won’t help with the problem but it should at least give you an accurate success/failure message.

    Thread Starter hshah

    (@hshah)

    I am using the latest version, and this is on a staging site so I have all caching disabled.

    Is there any debugging I could enable to troubleshoot this?

    Thread Starter hshah

    (@hshah)

    Also, if it helps, the ones I am trying to delete all have a orange coloured bar on the left.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    The orange bar is just a visual indicator for events without an action (should be a None message in the Action column).

    Do you have WP-CLI available? If so, can you try wp cron event delete <hook>? Try a wp cache flush while you’re there too.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Oh the orange bar can show up for events that have missed their next run time, too.

    Thread Starter hshah

    (@hshah)

    I don’t have CLI but I can set it up. Give me a bit.

    They do have None under the Actions column, which makes sense because those plugins no longer exist lol.

    Thread Starter hshah

    (@hshah)

    Ahh, it deletes them if I click Delete under each one. If I select them and use the Bulk Actions option, it does nothing.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Oh that’s good to know thanks, I’ll get that checked.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Found the problem, the bottom bulk actions menu isn’t working, but the top one is. I’ll get it fixed.

    Thread Starter hshah

    (@hshah)

    Haha! The main thing is that we got to the bottom of this mystery 🙂

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I forgot to mention that this was fixed in 1.8.1. Thanks for the report.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Deleting Cron’ is closed to new replies.