- This topic has 7 replies, 2 voices, and was last updated 3 years, 3 months ago by
Tom.
-
AuthorPosts
-
January 11, 2023 at 11:15 pm #2492389
ch1800
Hello,
I’m getting this error every couple of days at this site only since a couple of months but doesn’t seem to affect the site in any visible way:
WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROMwp_optionsWHEREoption_name= '_transient_timeout_global_styles_generatepress' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/plugins/gp-premium/sections/functions/templates/template.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_optionDoes this ring any bells?
January 12, 2023 at 1:53 pm #2493462Tom
Lead DeveloperLead DeveloperHi there,
global_styles_generatepressisn’t something that exists in GeneratePress.Perhaps it’s custom functionality or a plugin?
January 12, 2023 at 5:29 pm #2493590ch1800
Thanks for your feedback.
I also searched the DB ad all files and found nothing related. Strange.
I’ll leave it as is and see whether it happens again later.January 12, 2023 at 8:12 pm #2493674Tom
Lead DeveloperLead DeveloperThe fact that it’s referencing our old Sections module is strange. Perhaps that module was altered or filtered into?
January 12, 2023 at 8:26 pm #2493677ch1800
In fact, I always use sections and always activate the snippet that was recommended here since GP version 2:
https://generatepress.com/forums/topic/previous-latest-gpp-version-1-12-3/#post-1756795Now, when checking this particular site, I’m surprised to see that this snippet is not there for some reason, while sections are active and working everywhere… While all other sites I manage have it active.
January 15, 2023 at 8:03 pm #2496812Tom
Lead DeveloperLead DeveloperThat snippet isn’t necessary if the Sections module is already activated. The site you’re using likely already had it activated before we deprecated it, or that function existed at some point allowing you to activate it, then it was removed.
January 15, 2023 at 8:24 pm #2496830ch1800
Thanks Tom, I understand.
Last week, I added back this snippet to see whether it is resolved but now I see that I got the error again sometime yesterday. So, yes, it looks like the snippet does not relate to this error.It is strange as this site has not been changed for over a year, only updated, and this error was never happening before.
As I don’t see any impact on the site, I think I’ll leave this as is and see how it goes.
January 16, 2023 at 7:16 pm #2498279Tom
Lead DeveloperLead DeveloperSounds good, let me know if anything new happens 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.