Hi @lcerura, thanks for reaching out.
Using your FTP or hosting file manager, navigate to your wp-content/wflogs folder and check for your rules.php file. What is the last modified date on this file? If it’s 0kb or the last updated time matches what Wordfence is saying, you can actually delete the wflogs folder or its contents altogether and Wordfence should try to repopulate it within 30 minutes.
It’s also worth checking that permissions on your WordPress site’s directories are 755
and that the owner on your WordPress root directory (and all contained directories) is www-data
. Web servers such as Apache, Nginx, etc will require www-data to be an owner so that WordPress and plugins can update and run functions required to do so.
If the permissions seem fine and the error still reports after trying to get Wordfence to recreate the rules.php file, please drop us a diagnostic report to wftest @ wordfence . com? You can find the link to do so at the top of the Wordfence Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it. This is so that I can check if your incoming/outgoing communications with our servers are working.
If you continue to have persistent problems with this file/folder after trying the above, you can bypass this entirely by setting Wordfence to write to the MySQLi storage engine instead of a file if you prefer: https://www.wordfence.com/help/firewall/mysqli-storage-engine/
Thanks,
Peter.