WordPress database error Commands out of sync; you can’t run this command
-
29-Oct-2020 23:07:12 UTC] WordPress database error Commands out of sync; you can't run this command now for query SHOW FULL COLUMNS FROM "wplp_woocommerce_sessions"made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Session_Handler->save_data
I got this error during a sale that had a lot of users refreshing the site over and over and attempting to check out with the same items at once.
My host says:
It seems that this error occurs when MySQL query data is left in an inconsistent state. Most of the time, this is likely due to another plugin running a query and not finishing” it off or clearing it correctly.
Can someone tell me what the issue is?
WooCommerce status report: https://pastebin.com/NUuwLK5J
I will admit my theme was not updated. It was on 7.1 and now it is on 7.3
Also my WordPress might not have been up-to-date. Was still on 5.5.1 instead of 5.5.3Lastly, I am dequeueing my cast fragment with this code in my theme’s function.php file
/* DEQUEUES CART FRAGMENT */ add_action( 'wp_print_scripts', 'de_script', 100 );
However, someone else said I should make sure to whitelist (and make sure is not cached):
?wc-ajax=get_refreshed_fragments
Do I have to do both things? Dequeue and whitelist? Or one or the other? Thank you.
- The topic ‘WordPress database error Commands out of sync; you can’t run this command’ is closed to new replies.