Support » Theme: GeneratePress » 3.1.3 PHP error logs everyday

  • Marius84

    (@marius84)


    After the latest update of GeneratePress 3.1.3 I continue to get an error in PHP log.

    [11-Mar-2022 06:47:08 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php‘), include(‘/themes/generatepress/index.php‘), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option

    What can be the cause?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Leo

    (@leohsiang)

    Hi there,

    Are you using a child theme or any custom functions on the site at all?

    If so can you disable them to test?

    Thread Starter Marius84

    (@marius84)

    I use this one from @edge22 :

    add_filter( 'generate_editor_styles', function( $editor_styles ) {
        $editor_styles[] = 'assets/css/admin/editor-style.css';
    
        return $editor_styles;
    } );

    https://wordpress.org/support/topic/latest-version-3-1-3-make-grey-style-disappear/#post-15353728

    • This reply was modified 5 months ago by Marius84.
    Theme Author Tom

    (@edge22)

    Hi there,

    This Deadlock error isn’t something GeneratePress has control over. It looks like the offending option is from core (they just append the theme name to the option so it’s unique to the theme: _transient_global_styles_{theme_name}

    I haven’t personally seen this kind of error, but some searching around showed that it’s likely due to a caching plugin:
    https://wordpress.org/support/topic/wordpress-database-error-140/
    https://wordpress.org/support/topic/deadlock-found-when-trying-to-get-lock/
    https://wordpress.org/support/topic/deadlock-found-2/
    https://wordpress.org/support/topic/wordpress-database-error-deadlock-found-when-trying-to-get-lock-3/
    https://wordpress.org/support/topic/wordpress-database-error-deadlock-2/

    Hope this helps!

    Thread Starter Marius84

    (@marius84)

    Very strange nothing change in my website since this update. Started from the latest update, I’m using only Autoptimize plugin. @optimizingmatters

    Optimizing Matters

    (@optimizingmatters)

    Autoptimize does not do object or database (or page) caching, so pretty unlikely to be related to AO.

    frank (ao dev)

    David

    (@diggeddy)

    Hi there,

    do you have any serverside caches ? Or a dedicated cache plugin ?

    Thread Starter Marius84

    (@marius84)

    Absolutely no

    Thread Starter Marius84

    (@marius84)

    [11-Mar-2022 06:47:08 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/index.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [11-Mar-2022 06:47:08 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/index.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [11-Mar-2022 13:48:29 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/archive.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [11-Mar-2022 13:48:29 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/archive.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [11-Mar-2022 20:02:29 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/single.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [12-Mar-2022 14:47:42 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/index.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [12-Mar-2022 19:13:10 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/archive.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [13-Mar-2022 10:10:38 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/index.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [13-Mar-2022 10:10:38 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/index.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [13-Mar-2022 10:10:38 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/index.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [13-Mar-2022 20:19:30 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/single.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [13-Mar-2022 20:19:30 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/single.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [14-Mar-2022 13:13:04 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_svg_filters_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/single.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), do_action(‘wp_body_open’), WP_Hook->do_action, WP_Hook->apply_filters, wp_global_styles_render_svg_filters, wp_get_global_styles_svg_filters, get_transient, delete_option
    [16-Mar-2022 16:08:39 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/index.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [16-Mar-2022 16:08:39 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/index.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [17-Mar-2022 07:44:52 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/index.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [19-Mar-2022 15:34:17 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/single.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_global_styles, wp_get_global_stylesheet, get_transient, delete_option
    [19-Mar-2022 21:28:12 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_svg_filters_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/single.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), do_action(‘wp_body_open’), WP_Hook->do_action, WP_Hook->apply_filters, wp_global_styles_render_svg_filters, wp_get_global_styles_svg_filters, get_transient, delete_option
    [19-Mar-2022 21:28:12 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_global_styles_svg_filters_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/single.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), do_action(‘wp_body_open’), WP_Hook->do_action, WP_Hook->apply_filters, wp_global_styles_render_svg_filters, wp_get_global_styles_svg_filters, get_transient, delete_option
    [19-Mar-2022 21:28:12 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_timeout_global_styles_svg_filters_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/single.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), do_action(‘wp_body_open’), WP_Hook->do_action, WP_Hook->apply_filters, wp_global_styles_render_svg_filters, wp_get_global_styles_svg_filters, get_transient, delete_option
    [19-Mar-2022 21:28:12 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘_transient_timeout_global_styles_svg_filters_generatepress’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/generatepress/single.php’), get_header, locate_template, load_template, require_once(‘/themes/generatepress/header.php’), do_action(‘wp_body_open’), WP_Hook->do_action, WP_Hook->apply_filters, wp_global_styles_render_svg_filters, wp_get_global_styles_svg_filters, get_transient, delete_option

    Theme Author Tom

    (@edge22)

    I’m afraid I don’t really have an answer here as the theme has no control over those options.

    Since it’s not a widespread issue, my guess is that there’s something going on with your server causing the Deadlock database errors. It seems to have something to do with the new global styles feature in WordPress 5.9 (not GP).

    Thread Starter Marius84

    (@marius84)

    This is very strange because when I switch the theme automatically the errors disappears.
    I will make other tests.

    Have you tried re-installing a fresh copy of the Theme, in case something go corrupted. Your Theme settings are saved in the database so you won’t lose them

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.