Uncaught mysqli_sql_exception: Too many connections i
-
Hi, recently I’m seeing the following entry in the error log of a site that is being logged every few days. Here is an example of the most recent entry:
[16-Jan-2024 00:59:16 UTC] PHP Fatal error: Uncaught mysqli_sql_exception: Too many connections in /home/xxxx/xxxx.com/wp-content/plugins/ninjafirewall/lib/firewall.php:439
Stack trace: 0 /home/xxxx/xxxx.com/wp-content/plugins/ninjafirewall/lib/firewall.php(439): mysqli_real_connect(Object(mysqli), 'localhost', 'xxxx_xxxx…', Object(SensitiveParameterValue), 'xxxx_xxxx…', NULL, NULL, 0) 1 /home/xxxx/xxxx.com/wp-content/plugins/ninjafirewall/lib/firewall.php(93): nfw_connect() 2 /home/xxxx/xxxx.com/wp-content/nfwlog/ninjafirewall.php(10): include_once('/home/xxxx/…') 3 {main}`[16-Jan-2024 00:59:16 UTC] PHP Fatal error: Uncaught mysqli_sql_exception: Too many connections in /home/xxxx/xxxx.com/wp-content/plugins/ninjafirewall/lib/firewall.php:439
Stack trace: 0 /home/xxxx/xxxx.com/wp-content/plugins/ninjafirewall/lib/firewall.php(439): mysqli_real_connect(Object(mysqli), 'localhost', 'xxxx_xxxx…', Object(SensitiveParameterValue), 'xxxx_xxxx…', NULL, NULL, 0) 1 /home/xxxx/xxxx.com/wp-content/plugins/ninjafirewall/lib/firewall.php(93): nfw_connect() 2 /home/xxxx/xxxx.com/wp-content/nfwlog/ninjafirewall.php(10): include_once('/home/xxxx/…') 3 {main}thrown in /home/xxxx/xxxx.com/wp-content/plugins/ninjafirewall/lib/firewall.php on line 439
The line of code in
/lib/firewall.php
is:@mysqli_real_connect( $nfw_['mysqli'], $nfw_['DB_HOST'], $nfw_['DB_USER'], $nfw_['DB_PASSWORD'], $nfw_['DB_NAME'], $nfw_['port'], $nfw_['socket'], $nfw_['MYSQL_CLIENT_FLAGS'] );
Any thoughts on what might be causing this?
* There are three sites on the same server, two sites are logging this error, and one is not. All site use the same theme. In terms of the plugins, the two sites throwing the error have three plugins activated that are not present on the third site:
- This topic was modified 9 months, 1 week ago by . Reason: Added details regarding the plugins and theme
The page I need help with: [log in to see the link]
- The topic ‘Uncaught mysqli_sql_exception: Too many connections i’ is closed to new replies.