Ninja FW crashed
-
I get the message (in French) “Impossible de récupérer les informations d’identification de base de données WordPress” inthe dashboard (ie can’t retrieve database information).
I’m using the “standard” docker image of wordpress and I tried to run the troubleshooting that says the following (not very helpful):NinjaFirewall (WP edition) troubleshooter HTTP server : Apache/2.4.51 (Debian) PHP version : 7.4.27 PHP SAPI : APACHE2HANDLER auto_prepend_file : /var/www/html/wp-content/nfwlog/ninjafirewall.php Loader's path to firewall : /var/www/html/wp-content/plugins/ninjafirewall/lib/firewall.php wp-config.php : found in /var/www/html/wp-config.php NinjaFirewall detection : NinjaFirewall is loaded but returned error code #3 Loaded INI file : none user_ini.filename : .user.ini user_ini.cache_ttl : 300 seconds User PHP INI : none found DOCUMENT_ROOT : /var/www/html ABSPATH : /var/www/html/ WordPress version : 5.8.2 WP_CONTENT_DIR : /var/www/html/wp-content Plugins directory : /var/www/html/wp-content/plugins User Role : Administrator User Capabilities : manage_options: OK - unfiltered_html: OK Log dir permissions : /var/www/html/wp-content/nfwlog dir is writable Cache dir permissions : /var/www/html/wp-content/nfwlog/cache dir is writable NinjaFirewall (WP edition) troubleshooter v1.9.4
Another troubleshooter said
Version: 2.0.2 Found /var/www/html/wp-config.php. Opening it for reading. Looking for DB_NAME, DB_USER, DB_PASSWORD, DB_HOST and $table_prefix: cannot read DB_NAME cannot read DB_USER cannot read DB_PASSWORD cannot read DB_HOST cannot read table_prefix Notice: Undefined index: DB_HOST in /var/www/html/wg-db.php on line 193 Attempting to connect to the DB: Notice: Undefined index: DB_HOST in /var/www/html/wg-db.php on line 125 Notice: Undefined index: DB_USER in /var/www/html/wg-db.php on line 125 Notice: Undefined index: DB_PASSWORD in /var/www/html/wg-db.php on line 125 Notice: Undefined index: DB_NAME in /var/www/html/wg-db.php on line 125 Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/html/wg-db.php on line 125 Connection Error: No such file or directory Exiting.
but wp-config contains:
root@ca88017b661f:/var/www/html# grep DB_ wp-config.php define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') ); define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') ); define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') ); define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') ); define( 'DB_CHARSET', getenv_docker('WORDPRESS_DB_CHARSET', 'utf8') ); define( 'DB_COLLATE', getenv_docker('WORDPRESS_DB_COLLATE', '') );
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ninja FW crashed’ is closed to new replies.