WordPress database error Deadlock found when trying to get lock
-
Hi there,
Recently noticed in my PHP error logs that this WCFM_Integrations->wcfm_thirdparty_init function is causing the following php error:
AH01071: Got error 'PHP message: WordPress database error Deadlock found when trying to get lock; try restarting transaction for query INSERT INTO<code>wp_options</code>(<code>option_name</code>,<code>option_value</code>,<code>autoload</code>) VALUES ('wcfm_updated_end_point_wc_listings', '1', 'yes') ON DUPLICATE KEY UPDATE<code>option_name</code>= VALUES(<code>option_name</code>),<code>option_value</code>= VALUES(<code>option_value</code>),<code>autoload</code>= VALUES(<code>autoload</code>) made by 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, WCFM_Integrations->wcfm_thirdparty_init, update_option, add_option'
Not exactly sure what is causing this error, but I’m really only making use of the frontend product manager (which is GREAT btw!) and opted to just disable this init action altogether that is calling wcfm_thirdparty_init, via this method I’ve added to my
functions.php
file:function remove_action_wcfm_thirdparty_init() { global $WCFM; remove_action( 'init', array( $WCFM->wcfm_integrations, 'wcfm_thirdparty_init' ) ); } add_action( 'wp_head', 'remove_action_wcfm_thirdparty_init' );
Just thought I’d mention this in case it’s a programmatic issue with the code, or maybe it’s possibly related to me recently disabling the
wcfm_save_page_analytics_data
action as well. (see: https://www.ads-software.com/support/topic/disable-wp_wcfm_detailed_analysis-table-and-purge-data/)
- The topic ‘WordPress database error Deadlock found when trying to get lock’ is closed to new replies.