config.php PATH error using Windows IIS 8.5 (mixed forward and back slashes)
-
When we installed WordFence, we cannot save or load any configuration settings.
The Dashboard gives the following error :“The Wordfence Web Application Firewall cannot run. The configuration files are corrupt or inaccessible by the web server, which is preventing the WAF from functioning. Please verify the web server has permission to access the configuration files. You may also try to rebuild the configuration file by clicking here. It will automatically resume normal operation when it is fixed. “
The PHP log shows there is an error reading the config data.
[31-Aug-2018 21:25:04 UTC] Error reading Wordfence Firewall config data, configuration file could be corrupted or inaccessible. Path: C:\Webs\~Live\fda/wp-content/wflogs/config.php
We have tried re-installing and tried recreating the config file, but we cannot get it work work
As you can see, it appears WordFence is trying to load the config path using a mix of
forward slashes and backslashes. If it used one other the other, it would work, but the mix of ‘\’ and ‘/’ gives this error.Is there a way to fix this and force Wordfence to use ALL ‘/’ or ALL ‘\’ in the path.
In case you need to know, we are using IIS 8.5 / PHP 7.2.2 / WordPress 4.9.8 / WordFence 7.1.11 (1534873799)
thanks.
- The topic ‘config.php PATH error using Windows IIS 8.5 (mixed forward and back slashes)’ is closed to new replies.