Title: WordPress database error Deadlock
Last modified: May 5, 2022

---

# WordPress database error Deadlock

 *  [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-5/)
 * The only thing that is changed the last month or so, is Kadence theme. Of cource
   that means nothing, since many plugins are updated etc etc but i didn’t had that
   before.
 * > `[05-May-2022 18:16:08 UTC] WordPress database error Deadlock found when trying
   > to get lock; try restarting transaction for query DELETE FROM`wp_options`WHERE`
   > option_name`= '_site_transient_theme_roots' made by require('wp-load.php'),
   > require_once('wp-config.php'), require_once('wp-settings.php'), do_action('
   > init'), WP_Hook->do_action, WP_Hook->apply_filters, cptch_init, bws_include_init,
   > wp_get_themes, search_theme_directories, get_site_transient, delete_site_option,
   > delete_network_option, delete_option`
 * Thanks
    -  This topic was modified 4 years, 1 month ago by [dimal](https://wordpress.org/support/users/dimalifragis/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-5/#post-15619878)
 * Hi,
    There isn’t enough there for me to make much of a guess. I suggest doing
   a database repair. Contact your host to view the logs.
 * Ben
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-5/#post-15619959)
 * I did contact them and here is their reply:
 * > I checked the mysql server and I do not see any stuck threads there. So there
   > wordpress itself is triggering the deadlock. I would try changing the theme
   > or plugins you have activated.
 * Also we checked the database, found no issues and all work well.
 * Running 3 WordPress sites for almost 10 years, i have never seen that particular
   error.
 * I have no other data to give you, this is what debug logs reports.
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-5/#post-15620065)
 * Hi,
    Unfortunately, I can’t offer any suggestions.
 * `cptch_init, bws_include_init`
 * Seem to be from [https://github.com/bestwebsoft/captcha-bws-wordpress-plugin](https://github.com/bestwebsoft/captcha-bws-wordpress-plugin)
 * If you’re using that plugin you could test deactivating it?
 * Ben
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-5/#post-15620066)
 * Just to note, I do not think this has to do with the theme, but _site_transient_theme_roots
   as to do with the active theme so you could try deactivating and reactivating
   themes as a test as well.

Viewing 4 replies - 1 through 4 (of 4 total)

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/kadence/1.5.0/screenshot.png)
 * Kadence
 * [Support Threads](https://wordpress.org/support/theme/kadence/)
 * [Active Topics](https://wordpress.org/support/theme/kadence/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/kadence/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/kadence/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-5/#post-15620066)
 * Status: not resolved