• Resolved malaga16

    (@malaga16)


    Hi! My error log has lots of posts like this below. Thanks your support!

    [02-Mar-2025 18:36:19 Europe/] PHP Fatal error: Uncaught mysqli_sql_exception: Connection refused in /wp-content/plugins/ninjafirewall/lib/firewall.php:451 Stack trace: #0 /wp-content/plugins/ninjafirewall/lib/firewall.php(451): mysqli_real_connect() #1 /wp-content/plugins/ninjafirewall/lib/firewall.php(104): nfw_connect() #2 /wp-content/nfwlog/ninjafirewall.php(10): include_once(‘/home/kozpontis…’) #3 {main} thrown in /wp-content/plugins/ninjafirewall/lib/firewall.php on line 451

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

    (@bruandet)

    The firewall cannot connect to the database, the connection is refused (maybe due to wrong credentials).
    Can you download this script: https://nintechnet.com/share/wp-db.txt
    1. Rename it to “wp-db.php”.
    2. Upload it into your WordPress root folder.
    3. Go to https://YOUR WEBSITE/wp-db.php and look for error in the results.
    4. Delete it afterwards.

    Thread Starter malaga16

    (@malaga16)

    Sorry for my lately answer. I have done and it seems to be everything is ok.

    Attempting to connect to the DB: OK

    Attempting to read NinjaFirewall’s options (nfw_options) from the DB: OK
    Calling fetch_object: OK
    Checking options integrity: OK

    Attempting to read NinjaFirewall’s rules (nfw_rules) from the DB: OK
    Calling fetch_object: OK
    Checking rules integrity: OK

    Exiting.

    Plugin Contributor bruandet

    (@bruandet)

    It looks all good.
    Do you still have that error or is it gone?

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

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