“MySQL server has gone away” on WF query
-
I am running a PHP script to send emails from a form in a WP page. It works OK when the execution time is not to long, but after a certain duration, I get a “MySQL server has gone away” error, and it seems to be linked to a query initiated by WordFence (see the stack trace below). Apparently, it occurs at the end of the process when the script writes the e-mailing data into a MySQL db, outside WordPress. I don’t understand why Wordfence is involved at this point…
Can anybody help, please ?
Thanks,
Olivier
Error stack trace :
0 my_wordpress_directory_path/wp-includes/class-wpdb.php(2349): mysqli_query(Object(mysqli), 'SELECT name, va…')
#1 my_wordpress_directory_path/wp-includes/class-wpdb.php(2263): wpdb->_do_query('SELECT name, va…')
#2 my_wordpress_directory_path/wp-includes/class-wpdb.php(3146): wpdb->query('SELECT name, va…')
#3 my_wordpress_directory_path/wp-content/plugins/wordfence/lib/wfConfig.php(297): wpdb->get_results('SELECT name, va…')
#4 my_wordpress_directory_path/wp-content/plugins/wordfence/lib/wfConfig.php(375): wfConfig::loadAllOptions()
#5 my_wordpress_directory_path/wp-content/plugins/wordfence/lib/wfConfig.php(538): wfConfig::hasCachedOption('liveTrafficEnab…')
#6 my_wordpress_directory_path/wp-content/plugins/wordfence/lib/wfConfig.php(932): wfConfig::get('liveTrafficEnab…')
# in my_wordpress_directory_path/wp-includes/class-wpdb.php on line 2349
- The topic ‘“MySQL server has gone away” on WF query’ is closed to new replies.