Support » Plugin: NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall » Cannot retrieve WordPress database credentials.

  • Olivia

    (@metadigitalnz)


    Hi, I’ve set up NinjaFirewall on many sites, but two are giving me the following error

    NinjaFirewall fatal error: Cannot retrieve WordPress database credentials. Review your installation, your site is not protected.
    
    

    I have checked the passwords for the database and made sure there were no slashes or anything in the password, but I still cannot set up the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Can you run 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
    4. Delete it afterwards.

    It will help to locate the error.

    Thread Starter Olivia

    (@metadigitalnz)

    Thanks, the error I got was

    – cannot read table_prefix

    How do I fix this?

    Plugin Author nintechnet

    (@nintechnet)

    Download your wp-config.php file and search for the $table_prefix = 'xxxx_'; line, where xxxx_ is the database prefix. Is there any special characters in the prefix? Or multiple similar $table_prefix lines?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot retrieve WordPress database credentials.’ is closed to new replies.