WP database errors – syntax error in ActionScheduler_DBStore.php
-
The Event Calendar is flooding PHP error log with the following messages every single minute:
sitename [Mon Oct 20 13:21:27.226397 2025] [php:notice] [pid 708] [client 10.31.16.14:34640] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SKIP LOCKED ) t2 ON t1.action_id = t2.action_id SET claim_id=1097345, last_at…' at line 1 for query UPDATE wp_actionscheduler_actions t1 JOIN ( SELECT action_id from wp_actionscheduler_actions WHERE claim_id = 0 AND scheduled_date_gmt <= '2025-10-20 11:21:27' AND status='pending' ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC LIMIT 25 FOR UPDATE SKIP LOCKED ) t2 ON t1.action_id = t2.action_id SET claim_id=1097345, last_attempt_gmt='2025-10-20 11:21:27', last_attempt_local='2025-10-20 13:21:27' made by do_action_ref_array('action_scheduler_run_queue'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->run, ActionScheduler_QueueRunner->do_batch, ActionScheduler_DBStore->stake_claim, ActionScheduler_DBStore->claim_actionssitename [Mon Oct 20 13:21:27.226457 2025] [php:error] [pid 708] [client 10.31.16.14:34640] PHP Fatal error: Uncaught RuntimeException: Unable to claim actions. Database error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SKIP LOCKED ) t2 ON t1.action_id = t2.action_id SET claim_id=1097345, last_at…' at line 1. in /data/a/6/a6d583ee-ca2c-4f21-acbb-72f6e39e457d/sitename/www/wp-content/plugins/the-events-calendar/common/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:1019\nStack trace:\n#0 /data/a/6/a6d583ee-ca2c-4f21-acbb-72f6e39e457d/sitename/www/wp-content/plugins/the-events-calendar/common/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php(861): ActionScheduler_DBStore->claim_actions(1097345, 25, NULL, '', '')\n#1 /data/a/6/a6d583ee-ca2c-4f21-acbb-72f6e39e457d/sitename/www/wp-content/plugins/the-events-calendar/common/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(179): ActionScheduler_DBStore->stake_claim(25)\n#2 /data/a/6/a6d583ee-ca2c-4f21-acbb-72f6e39e457d/sitename/www/wp-content/plugins/the-events-calendar/common/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(158): ActionScheduler_QueueRunner->do_batch(25, 'WP Cron')\n#3 /data/a/6/a6d583ee-ca2c-4f21-acbb-72f6e39e457d/sitename/www/wp-includes/class-wp-hook.php(324): ActionScheduler_QueueRunner->run('WP Cron')\n#4 /data/a/6/a6d583ee-ca2c-4f21-acbb-72f6e39e457d/sitename/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)\n#5 /data/a/6/a6d583ee-ca2c-4f21-acbb-72f6e39e457d/sitename/www/wp-includes/plugin.php(565): WP_Hook->do_action(Array)\n#6 /data/a/6/a6d583ee-ca2c-4f21-acbb-72f6e39e457d/sitename/www/wp-cron.php(191): do_action_ref_array('action_schedule…', Array)\n#7 {main}\n thrown in /data/a/6/a6d583ee-ca2c-4f21-acbb-72f6e39e457d/sitename/www/wp-content/plugins/the-events-calendar/common/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 1019WordPress: 6.8.3
PHP: 8.4
Database: MariaDB 10.5
The Event Calendar: 6.15.8WooCommerce is NOT present and was never installed on this site.
Any idea how to prevent this error and log flooding? (disabling the log is not a solution)
The topic ‘WP database errors – syntax error in ActionScheduler_DBStore.php’ is closed to new replies.