I am getting below error on my site after installing jetpack, and this error is also intermittent works after refresh. Upon checking with hostinger come to know that DB connection is reaching max whenever jetpack is installed.
“Error establishing a database connection”
Debug script gives below details, I had to uninstall the plugins to get the error resolved but as this is good plugin to get the insights, can anyone suggest how to fix the intermittent issue? 7 out of 10 customer gets issue and my website is e-commerce website.
WordPress database error Commands out of sync; you can’t run this command now for query INSERT INTO wp_options
(option_name
, option_value
, autoload
) VALUES (‘_transient_jetpack_file_data_9.1’, ‘a:1:{s:32:\”4fca6eb23a793155d69fdb119a094926\”;a:14:{s:4:\”name\”;s:9:\”Copy Post\”;s:11:\”description\”;s:77:\”Enable the option to copy entire posts and pages, including tags and settings\”;s:4:\”sort\”;s:2:\”15\”;s:20:\”recommendation_order\”;s:0:\”\”;s:10:\”introduced\”;s:3:\”7.0\”;s:7:\”changed\”;s:0:\”\”;s:10:\”deactivate\”;s:0:\”\”;s:4:\”free\”;s:0:\”\”;s:19:\”requires_connection\”;s:2:\”No\”;s:13:\”auto_activate\”;s:2:\”No\”;s:11:\”module_tags\”;s:7:\”Writing\”;s:7:\”feature\”;s:7:\”Writing\”;s:25:\”additional_search_queries\”;s:15:\”copy, duplicate\”;s:12:\”plan_classes\”;s:0:\”\”;}}’, ‘no’) ON DUPLICATE KEY UPDATE option_name
= VALUES(option_name
), option_value
= VALUES(option_value
), autoload
= VALUES(autoload
) made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Sender->do_sync, Automattic\Jetpack\Sync\Sender->do_sync_and_set_delays, Automattic\Jetpack\Sync\Sender->do_sync_for_queue, do_action(‘jetpack_sync_before_send_queue_sync’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Modules\Callables->maybe_sync_callables, Automattic\Jetpack\Sync\Modules\Callables->get_all_callables, array_map, Automattic\Jetpack\Sync\Modules\Callables->get_callable, call_user_func, Jetpack_Gutenberg::get_availability, do_action(‘jetpack_register_gutenberg_extensions’), WP_Hook->do_action, WP_Hook->apply_filters, Jetpack_Gutenberg::{closure}, Jetpack_Gutenberg::set_availability_for_plan, Jetpack_Plan::supports, Jetpack_Plan::get, Jetpack::get_module, Jetpack::get_file_data, set_transient, add_option
WordPress database error Commands out of sync; you can’t run this command now for query SELECT autoload FROM wp_options WHERE option_name = ‘_transient_jetpack_file_data_9.1’ made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Sender->do_sync, Automattic\Jetpack\Sync\Sender->do_sync_and_set_delays, Automattic\Jetpack\Sync\Sender->do_sync_for_queue, do_action(‘jetpack_sync_before_send_queue_sync’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Modules\Callables->maybe_sync_callables, Automattic\Jetpack\Sync\Modules\Callables->get_all_callables, array_map, Automattic\Jetpack\Sync\Modules\Callables->get_callable, call_user_func, Jetpack_Gutenberg::get_availability, do_action(‘jetpack_register_gutenberg_extensions’), WP_Hook->do_action, WP_Hook->apply_filters, Jetpack_Gutenberg::{closure}, Jetpack_Gutenberg::set_availability_for_plan, Jetpack_Plan::supports, Jetpack_Plan::get, Jetpack::get_module, Jetpack::get_file_data, delete_transient, delete_option
WordPress database error Commands out of sync; you can’t run this command now for query SELECT option_value FROM wp_options WHERE option_name = ‘_transient_timeout_jetpack_sync_constants_await’ LIMIT 1 made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Sender->do_sync, Automattic\Jetpack\Sync\Sender->do_sync_and_set_delays, Automattic\Jetpack\Sync\Sender->do_sync_for_queue, do_action(‘jetpack_sync_before_send_queue_sync’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Modules\Constants->maybe_sync_constants, get_transient, get_option