Problems reading Wordfence Firewall config data
The Wordfence Firewall stores some of its information in the file system. The files are located in wp-content/wflogs/. If there are issues with file writing or disk space on the server, the configuration file config.php could become corrupt. If this happens, you will receive an administrative notice on all Wordfence pages, prompting you to rebuild the configuration file automatically. If restoration completes successfully, no further action is required on your part. Your Firewall is now in perfect shape again.
If the message still appears after reloading the page, you may need to fix file permissions on the files in wp-content/wflogs/, including the wflogs folder itself. Some hosting companies may need to do this for you, while most others allow you to do it yourself. You can also try renaming the wflogs folder, which will reset the firewall settings, including Learning Mode and any automatic whitelist entries.
Configuration update for sites switching from mod_php5 to mod_php7
Sites that were originally installed on a server using mod_php5 may display an admin notice like this, in preparation for upgrading to PHP 7, or to optimize the firewall again after switching to PHP 7:
The Wordfence Web Application Firewall needs a configuration update. It is not currently in extended protection mode but was configured to use an older version of PHP and may have become deactivated when PHP was updated. You may perform the configuration update automatically by clicking here or use the "Optimize the Wordfence Firewall" button on the Firewall Options page.
Hosts using mod_php are less common than those using other methods to run PHP, so if your firewall is already optimized and you do not see this admin notice, your site should be configured correctly.
Generally, you should only need to click the link in the admin notice to automatically update the .htaccess file for the firewall. If the notice disappears, then you are all set! If the notice appears again, you can use the button “Optimize the Wordfence Firewall” on the Firewall Options page to try updating the files the same way it works in a new installation. If you still have trouble resolving the issue, please contact support.
Firewall Optimization Troubleshooting
If you are experiencing issues during Firewall Optimization, please see our documentation on Firewall Optimization Troubleshooting.