Title: WordPress database error Deadlock found
Last modified: June 24, 2020

---

# WordPress database error Deadlock found

 *  [Leopard-Lady](https://wordpress.org/support/users/leopard-lady/)
 * (@leopard-lady)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-found-3/)
 * Hi – While troubleshooting problems with other plugins, I noticed 2 recurring
   errors in the logs for Login No Captcha reCAPTCHA plugin.
 * Here are the recurring errors:
 * `WordPress database error Deadlock found when trying to get lock; try restarting
   transaction for query DELETE FROM`wp_options`WHERE`option_name`= 'login_nocaptcha_notice'
   made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('
   wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/login-
   recaptcha/login-nocaptcha.php'), LoginNocaptcha::init, delete_option`
 * ————————-
 * `WordPress database error Deadlock found when trying to get lock; try restarting
   transaction for query DELETE FROM`wp_options`WHERE`option_name`= 'login_nocaptcha_working'
   made by do_action('admin_init'), WP_Hook->do_action, WP_Hook->apply_filters, 
   LoginNocaptcha::register_settings, delete_option`
 * I found a similar support post on this page:
    [https://wordpress.org/support/topic/php-nginx-error/](https://wordpress.org/support/topic/php-nginx-error/)
 * In the above post you replied _“Deadlock is a transaction error and this plugin
   doesn’t use any transactions”_.
 * After much research on this it appears the problem seems to lie somewhere between
   WP-Optimize plugin and Login No Captcha reCAPTCHA plugin.
 * WP-Optimize is the only plugin on this site that deletes options and/or transients.
 * As far as I know, Login No Captcha reCAPTCHA plugin seems to be working correctly.
 * Any insight you can share on these errors would be greatly appreciated.
 * Thank you,
    LL
 * **EDITED TO ADD:**
    These errors started showing up soon after the WordPress 
   5.4.1 update (released April 29).
    -  This topic was modified 5 years, 11 months ago by [Leopard-Lady](https://wordpress.org/support/users/leopard-lady/).
    -  This topic was modified 5 years, 11 months ago by [Leopard-Lady](https://wordpress.org/support/users/leopard-lady/).

The topic ‘WordPress database error Deadlock found’ is closed to new replies.

 * ![](https://ps.w.org/login-recaptcha/assets/icon-256x256.png?rev=1137538)
 * [Login No Captcha reCAPTCHA](https://wordpress.org/plugins/login-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/login-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-recaptcha/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Leopard-Lady](https://wordpress.org/support/users/leopard-lady/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-found-3/)
 * Status: not resolved