Trying to integrate this plugin on a large and active WordPress install -- My client has purchased about 5 or 6 of the addons and it seems as if whenever they install or activate one the DB and therefor site goes into a tailspin caused by a database lock on queries like this:
DELETE FROM wp_options WHERE `option_name` LIKE '%_wpforo_get_phrases_%'
Which appears to be the product of a 'clear_cache' function.. I had disabled caching in the Board settings -- but still this happened even in our initial install. Can someone shed some light on the purpose of this function and why it might backup the DB with the same query? and also how to possibly prevent it? This isn't server specific as it has happened on 2 different servers and I have seem a smattering of other reports about it online.
Â
More error info:
21/02/2024 02:29:36[20-Feb-2024 21:29:36] WARNING:Â child 1381228 said into stderr: "NOTICE: PHP message: WordPress database error Lock wait timeout exceeded; try restarting transaction for query DELETE FROM wp_options WHERE `option_name` LIKE '%_wpforo_get_phrases_%' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, wpforo\wpforo->init, do_action('wpforo_core_inited'), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, wpforopoll_activation, wpforopoll_install_phrases, wpforo\classes\Phrases->add, wpforo\classes\Phrases->clear_cache"
A lot of Wordpress sites use wpForo along with multiple addons. I haven't seen any reports as yours.
As @sofy said this is probably an issue (it IS a real issue, no doubt about it) with some conflict with something else.
What PHP version is that? And most important what exact DB is used?
Also it is not clear if the issue happens when you activate ANY addon or some addon? All of them? Are all addons updated with the latest version?
Is that Wordpress running many plugins? Any caching, Page or Object?
Well, if i was the site admin, i would bet that this is a caching issue. Redis or/and Rocket plugin.
I would start by disable Redis and Rocket. And then some other plugins and see what happens.
There is no other way to debug this.
Also i notice that php 7.4 is used. This is OLD and could also MariaDB be old also?
What are we talking about here? A script that takes 2 minutes to complete?
Default of 30 seconds and in some cases (for a limited time) 60 seconds in case of some heavy task (importing for example), are enough.
You are looking at the wrong direction. This is not a proper way to debug this.