You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The event is created, but it seems Scheduler::hook() is never actually called. (this registered its add_action())
However, if you do call (new Scheduler())->hook(); from the Migration\Controller's init method (assuming elsewhere would work too 🤷🏼), just once, it will not create itself again and not result in a failure.
This is included as mentioned in the docs (including action-scheduler.php)
@gin0115 it's a bit confusing why the Action Scheduler migration is trying to run, since that is from a pretty old version. Did you upgrade it recently?
Can you tell us:
What version you're currently running (and what you had before if recently upgraded)
What output you get if you run get_class( ActionScheduler_Store::instance() )
What value you have in the data base for the option schema-ActionScheduler_StoreSchema
Gm
I noticed that sometimes I get failed task like this:
and in the Log section is like this error:
2023-12-18T22:18:14+00:00 CRITICAL Uncaught InvalidArgumentException: Invalid action ID. No status found. in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:1173 Stack trace: #0 /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/action-scheduler/classes/ActionScheduler_ListTable.php(631): ActionScheduler_DBStore->get_status() #1 /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php(751): ActionScheduler_ListTable->prepare_items() #2 /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/action-scheduler/classes/ActionScheduler_AdminView.php(96): ActionScheduler_Abstract_ListTable->display_page() #3 /var/www/vhosts/domain.com/httpdocs/wp-includes/class-wp-hook.php(324): ActionScheduler_AdminView->render_admin_ui() #4 /var/www/vhosts/domain.com/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #5 /var/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/admin/views/html-admin-page-status.php(41): do_action() #7 /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-status.php(23): include_once('...') #8 /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php(362): WC_Admin_Status::output() #9 /var/www/vhosts/domain.com/httpdocs/wp-includes/class-wp-hook.php(324): WC_Admin_Menus->status_page() #10 /var/www/vhosts/domain.com/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #11 /var/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /var/www/vhosts/domain.com/httpdocs/wp-admin/admin.php(259): do_action() #13 {main} thrown in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 1173
if you need more information let me know
Thanks
The text was updated successfully, but these errors were encountered: