• Resolved y0uri

    (@y0uri)


    Hi,

    While updating a very outdated site (WP 5.5.12, WC 4.3.6, Pronamic Pay 8.5.1) to latest versions, I ran into some troubles with WC upgrade hooks failing, so I redid updating WC to each next major version number, running the action-scheduler via wp cli between each update. That solved the issues, except for one: there’s one Pronamic action-scheduler hook that failed:

    “pronamic_pay_schedule_woocommerce_upgrade_4_2_0”

    Should I worry about this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Reüel

    (@pronamic_reuel)

    We were unable to reproduce the issue and the upgrade tasks should run fine. You can try to re-run the task by removing the option pronamic_pay_woocommerce_version from the wp_options database table.

    Do you get any error message (maybe via WordPress admin → Tools → Scheduled actions) which tells us why the task fails?

    • This reply was modified 1 year, 1 month ago by Reüel.
    Thread Starter y0uri

    (@y0uri)

    Sorry for the late reply, Reüel. Just now deleted that record from the options table and refreshed the admin. Action is again added to schedule, but then fails again.
    Pronamic Pay, Versie 9.5.1
    WooCommerce, Versie 8.1.1

    I’ve seen the failed status after the action having been executed via WP Cron, via WP CLI and via Admin List Table. Every time the reason is:

    “Scheduled action for pronamic_pay_schedule_woocommerce_upgrade_4_2_0 will not be executed as no callbacks are registered.”

    Plugin Author Reüel

    (@pronamic_reuel)

    We’ve identified the cause of the issue and a fix has been implemented, which will be included in future plugin updates.

    It seems you’re not using WooCommerce Subscriptions (for recurring payments), in which case this specific upgrade action should not be scheduled — but currently is. As the upgrade action is not needed on your site, you can safely ignore this error (thanks for reporting though!).

    Thread Starter y0uri

    (@y0uri)

    Excellent, thanks very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Failed action-scheduler hook’ is closed to new replies.