Support » Fixing WordPress » Fix Deadlock on Table while flushing rewrite rules

  • Resolved Umesh Kumar

    (@umeshsingla)


    I’m using WordPress 3.6.1 on Nginx hosting, Custom Child theme, with W3 Total Cache and some other plugns.
    There are some rewrite rules in the theme and while flushing those rules I’m getting a Deadlock Error

    [error] 24111#0: *12364132 FastCGI sent in stderr: "PHP message: WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = 'rewrite_rules' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('/var/www/***/wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), call_user_func_array, rtp_hl_flush_rules, WP_Rewrite->flush_rules, delete_option, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query

    And I have no idea how to resolve the issue.

Viewing 1 replies (of 1 total)
  • Thread Starter Umesh Kumar

    (@umeshsingla)

    The issue was, I hooked flush_rules on wp_loaded hook in my child theme which was conflicting with W3 Total Cache.

Viewing 1 replies (of 1 total)
  • The topic ‘Fix Deadlock on Table while flushing rewrite rules’ is closed to new replies.