Action Scheduler – Duplicate entry ‘0’ error
-
Woocommerce plugin failed to load and we are unable to login to dashboard
WordPress database error: [Duplicate entry ‘0’ for key ‘wphe_actionscheduler_actions.PRIMARY’]
INSERT INTO wphe_actionscheduler_actions (hook,status,scheduled_date_gmt,scheduled_date_local,schedule,group_id,priority,args) SELECT 'woocommerce_cleanup_draft_orders', 'pending', '2023-09-06 07:34:39', '2023-09-06 07:34:39', 'O:32:\"ActionScheduler_IntervalSchedule\":5:{s:22:\"\0*\0scheduled_timestamp\";i:1693985679;s:18:\"\0*\0first_timestamp\";i:1693985679;s:13:\"\0*\0recurrence\";i:86400;s:49:\"\0ActionScheduler_IntervalSchedule\0start_timestamp\";i:1693985679;s:53:\"\0ActionScheduler_IntervalSchedule\0interval_in_seconds\";i:86400;}', 5, 10, '[]' FROM DUAL WHERE ( SELECT NULL FROM DUAL ) IS NULL
Fatal error: Uncaught RuntimeException: Error saving action: Duplicate entry ‘0’ for key ‘wphe_actionscheduler_actions.PRIMARY’ in /home/bioty/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:126 Stack trace: #0 /home/bioty/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php(69): ActionScheduler_DBStore->save_action_to_db() #1 /home/bioty/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(327): ActionScheduler_DBStore->save_action() #2 /home/bioty/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(315): ActionScheduler_ActionFactory->store() #3 /home/bioty/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/functions.php(175): ActionScheduler_ActionFactory->create() #4 /home/bioty/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php(65): as_schedule_recurring_action() #5 /home/bioty/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php(57): Automattic\WooCommerce\Blocks\Domain\Services\DraftOrders->maybe_create_cronjobs() #6 /home/bioty/public_html/wp-includes/class-wp-hook.php(308): Automattic\WooCommerce\Blocks\Domain\Services\DraftOrders->install() #7 /home/bioty/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #8 /home/bioty/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /home/bioty/public_html/wp-admin/admin.php(175): do_action() #10 /home/bioty/public_html/wp-admin/index.php(10): require_once(‘/home/bioty/pub…’) #11 {main} thrown in /home/bioty/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 126The page I need help with: [log in to see the link]
The topic ‘Action Scheduler – Duplicate entry ‘0’ error’ is closed to new replies.