File “wafRules.rules” does not exist
-
I checked a website I had set up a few months back today to see that Wordfence was disabled (I can’t remember if it was ever enabled) so I enabled it and WordFence refused to enable the firewall, giving the error message:
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.
Doing the ‘click here’ made no difference.
I have deactivated/reactivated, deleted wflogs, deleted wordfence including Db tables and wflogs and reinstalled a fresh version and still I get this error.
I have contacted my hosting provider who has confirmed that the user/owner and the file permissions are all correct.
My wflogs folder contains:
.htaccess (size 133 bytes)
attack-data.php (empty)
config.php (empty)
ips.php (empty)
rules.php (empty)The Tools/Diagnostics only shows the errors:
Checking if web server can read from ~/wp-content/wflogs File “wafRules.rules” does not exist
Checking if web server can write to ~/wp-content/wflogs File “wafRules.rules” does not existI have seen in another forum post that a plugin support person replied:
“It’s possible your server couldn’t connect to our servers to get the rules that go into the “wafRules.rules” file.–although it’s unlikely considering that the Wordfence Diagnostics doesn’t report any issue.
Can you confirm that the owner of the files you listed (and of the “wflogs” folder) is the user the web server runs as?
Now as the “wafRules.rules” file is the only one in that folder that doesn’t have a “.php” extension, it’s theoretically possible that your server is set to only allow specific file extensions or that it automatically changes permissions on files with uncommon extensions; this would have to be checked with your hosting provider.”
I mentioned this reply to my host who responded:
“I have just accessed the folder described in your error and file wafrules.rules really doesn’t exist on the folder. This issue is caused by a missing file in the plugin. I will advise you to remove it and try from the start, if you still face the issue contact the plugin developers for assistance with the missing files.
There is no issue with the permissions of the files, please ask them to check if their server is not blocking IP address 91.208.99.2 This is the Cloud outgoing IP address”
I’m at a complete loss as to what to do now and their doesn’t seem to be an answer anywhere online!
The topic ‘File “wafRules.rules” does not exist’ is closed to new replies.