max_statement_time exceeded
-
Hello,
we have a strange issue in our development website. Almost every time when saving woocommerce belonging settings like products, mails, general setting the website is running into a timeout. We already enabled a log file. The Log shows the following:
[22-Oct-2021 02:56:20 UTC] WordPress-Datenbank-Fehler Query execution was interrupted (max_statement_time exceeded) für Abfrage DELETE FROM wp7r_wc_admin_note_actions WHERE note_id = 6 von require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\Install::check_version, do_action(‘woocommerce_admin_updated’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\RemoteInboxNotifications\RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated, Automattic\WooCommerce\Admin\RemoteInboxNotifications\RemoteInboxNotificationsEngine::run, Automattic\WooCommerce\Admin\RemoteInboxNotifications\SpecRunner::run_spec, WC_Data->save, WC_Data_Store->update, Automattic\WooCommerce\Admin\Notes\DataStore->update, Automattic\WooCommerce\Admin\Notes\DataStore->save_actions [22-Oct-2021 02:56:20 UTC] WordPress-Datenbank-Fehler Query execution was interrupted (max_statement_time exceeded) für Abfrage ALTER TABLE wp7r_wc_admin_note_actions CHANGE COLUMN
note_id
note_id BIGINT UNSIGNED NOT NULL von require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\Install::check_version, Automattic\WooCommerce\Admin\Install::install, Automattic\WooCommerce\Admin\Install::create_tables, dbDelta [22-Oct-2021 02:56:20 UTC] WordPress-Datenbank-Fehler Query execution was interrupted (max_statement_time exceeded) für Abfrage REPLACE INTOwp7r_wc_admin_note_actions
(note_id
,name
,label
,query
,status
,is_primary
,actioned_text
,nonce_action
,nonce_name
) VALUES (1, ‘wayflyer_q3_2021’, ‘Get funded’, ‘https://woocommerce.com/products/wayflyer/’, ‘actioned’, 1, ”, NULL, NULL) von require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\Install::check_version, do_action(‘woocommerce_admin_updated’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\RemoteInboxNotifications\RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated, Automattic\WooCommerce\Admin\RemoteInboxNotifications\RemoteInboxNotificationsEngine::run, Automattic\WooCommerce\Admin\RemoteInboxNotifications\SpecRunner::run_spec, WC_Data->save, WC_Data_Store->update, Automattic\WooCommerce\Admin\Notes\DataStore->update, Automattic\WooCommerce\Admin\Notes\DataStore->save_actionsIt’s basically the same error code all the time. The main issue here is the max_statement_time exceeded but the value is with max_statement_time=300 already enough by the hoster. The hoster pointed out, that a command writing in the database table wp7r_wc_admin_note_actions takes way to long time and is running into the timeout.
We have no idea what could be the reason for that behavior. Do you have an idea and could help us with that? Why the script take too long to run the Query and ends up in a timeout?
Thanks, Alex
- The topic ‘max_statement_time exceeded’ is closed to new replies.