WordPress database error Commands out of sync;
-
Hello,
So on a fresh clean install with NO issues at all with any functionality we installed this plugin and did a test…
First, it doesnt even show and data on the recoverable screen after we did our test.
Waitied 15 mins thinking it would populate but nothing. Then checked server logs and we have wordpress debug enabled. Basically this is whats getting logged:
[28-Apr-2022 16:13:18 UTC] WordPress database error Commands out of sync; you can't run this command now for query UPDATE
optionsSET
option_value= '1651162458' WHERE
option_name` = ‘action_scheduler_lock_async-request-runner’ made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set, update_option
[28-Apr-2022 16:13:18 UTC] WordPress database error Commands out of sync; you can’t run this command now for query SELECT COUNT(DISTINCT claim_id) FROM actionscheduler_actions WHERE claim_id != 0 AND status IN ( ‘pending’, ‘in-progress’) made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_AsyncRequest_QueueRunner->maybe_dispatch, ActionScheduler_AsyncRequest_QueueRunner->allow, ActionScheduler_Abstract_QueueRunner->has_maximum_concurrent_batches, ActionScheduler_DBStore->get_claim_count
[28-Apr-2022 16:13:18 UTC] WordPress database error Commands out of sync; you can’t run this command now for query SELECT a.action_id FROM actionscheduler_actions a WHERE 1=1 AND a.status IN (‘pending’) AND a.scheduled_date_gmt <= ‘2022-04-28 16:13:18’ LIMIT 0, 5 made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_AsyncRequest_QueueRunner->maybe_dispatch, ActionScheduler_AsyncRequest_QueueRunner->allow, ActionScheduler_Store->has_pending_actions_due, ActionScheduler_DBStore->query_actions`Tested a few times and each time around 15 mins has passed no email is sent BUT the above is recorded in the debug log.
No other plugins have any issues. ALso tested on a fresh install with default storefront theme and woo and this plugin. Same issue. the only thing we have enabled is the postsmtp plugin which is required as wpmail fuction on the server is diabled.
Everything seems to point to your plugin being poorly coded…
Can you advise and fix?
- The topic ‘WordPress database error Commands out of sync;’ is closed to new replies.