• Resolved barnez

    (@pidengmor)


    Same issue as reported in https://ww.wp.xz.cn/support/topic/php-fatal-error-in-error-log-2/ across a number of sites on the same server. The debug script returns the following:

    [04-Mar-2025 11:06:22 UTC] PHP Fatal error: Uncaught mysqli_sql_exception: Too many connections in /home/xxxxxx/public_html/wp-content/plugins/ninjafirewall/lib/firewall.php:451 Stack trace: #0 /home/xxxxxx/public_html/wp-content/plugins/ninjafirewall/lib/firewall.php(451): mysqli_real_connect(Object(mysqli), 'localhost', 'xxxxxx_clubag…', Object(SensitiveParameterValue), 'xxxxxx_clubag…', NULL, NULL, 0) #1 /home/xxxxxx/public_html/wp-content/plugins/ninjafirewall/lib/firewall.php(104): nfw_connect() #2 /home/xxxxxx/public_html/wp-content/nfwlog/ninjafirewall.php(10): include_once('/home/xxxxxx/…') #3 {main} thrown in /home/xxxxxx/public_html/wp-content/plugins/ninjafirewall/lib/firewall.php on line 451

    The site is loading without issues.

    The same behaviour occurs on the other sites. Loading fine, but the debug script returns the above error.

    • This topic was modified 1 year, 2 months ago by barnez.
    • This topic was modified 1 year, 2 months ago by barnez.
    • This topic was modified 1 year, 2 months ago by barnez.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor bruandet

    (@bruandet)

    It’s a different issue. Your log shows it is not related to wrong credentials, but to the fact that the database has no more available connection : Too many connections
    You can check here: https://dev.mysql.com/doc/refman/8.4/en/too-many-connections.html
    Maybe your server has too much traffic and some connections are rejected on all installed sites?
    If you have root access, check with the netstat command :
    -All TCP connections: netstat -ntop
    -DB connections on port 3306: netstat -ntop | grep :3306

    Thread Starter barnez

    (@pidengmor)

    Thanks for the reply. I will follow this up with the host.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP fatal error in logs’ is closed to new replies.