Skip to content

Deactivating MainWP Dashboard plugin does not remove scheduled events from WP Cron #750

@bkatusic

Description

@bkatusic

Description of Issue:

When the MainWP Dashboard plugin is deactivated, the scheduled events do not get removed from WP Cron. So the next time WP Cron is run, these errors appear in the debug log:

[03-Apr-2025 11:12:58 UTC] Cron reschedule event error for hook: mainwp_cronuptimemonitoringcheck_action, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"minutely","args":[],"interval":60}
[03-Apr-2025 11:12:58 UTC] Cron reschedule event error for hook: mainwp_cron_perform_general_process, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"minutely","args":[],"interval":60}
[03-Apr-2025 11:12:58 UTC] Cron reschedule event error for hook: mainwp_cronupdatescheck_action, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"minutely","args":[],"interval":60}

Steps to Reproduce:

Deactivate the MainWP Dashboard plugin.
Observe the debug log.

Note

If you have a similar issue but the steps to reproduce are different, please open a help ticket for us to review and verify if it's a new issue or part of this one. Thanks!

Reported on: 2025-04-03
Issue confirmed with dev team: 2025-04-03
Resolved: Pending

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions