• Resolved israelinas

    (@israelinas)


    Hi,

    Lately, the following notification appears on the top of my admin panel in WordPress:

    “The last rules update for the Wordfence Web Application Firewall was unsuccessful. The last successful update check was June 3, 2022 14:28, so this site may be missing new rules added since then. You may wait for the next automatic attempt or try to Manually Update by clicking the “Manually Refresh Rules” button below the Rules list.”

    I clicked on the “MANUALLY REFRESH RULES”, but then I get the following message:

    “No rules were updated. Please verify you have permissions to write to the /wp-content/wflogs directory.”

    What should I do in order to fix this issue? Seems like there are no rules to update, but maybe I need to get permission to write wp-content/wflogs directory.
    How can I change the permission get a permission to write this directory?

    Thanks in advance,
    Salinas

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @israelinas, thanks for reaching out to us.

    The first thing I would try if the “manually refresh…” button isn’t suppressing the message, in your FTP or hosting file manager, navigating to your wp-content/wflogs folder and checking for rules.php. If it’s 0kb in size or the last updated time matches what Wordfence is saying, you should be able to delete the wflogs folder or its contents entirely and Wordfence should try to repopulate it within 30 minutes.

    It’s also worth checking that in addition to 755 permissions on your WordPress site’s directories, the process owner is also www-data.

    If you have persistent problems with this file/folder but don’t see connectivity or permissions failures/error messages in your Wordfence > Tools > Diagnostics page, you can bypass this entirely by setting Wordfence to write to the MySQLi storage engine instead of a file: https://www.wordfence.com/help/firewall/mysqli-storage-engine/

    I hope that helps you out!

    Peter.

    Thread Starter israelinas

    (@israelinas)

    Hi Peter,
    Thank you for this explanation.
    The wflogs file was 456kb and not 0kb, I deleted it and I will wait 30 minutes to see what happens.
    The other files in that folder (attack-data.php, config-livewaf.php, config-synced.php, config-transient.php, config.php, GeoLite2-Country.mmdb) are also last updated on the 03/06/2022 (same as the wflogs file) – Is that OK?

    In regards to the 755 permissions and www-data – Where can I find it?

    In regards to the MySQL Diagnostics – seems like everything there is OK.

    Regards,
    Salinas

    Thread Starter israelinas

    (@israelinas)

    Hi,

    The notification is still there even after I deleted the wflogs file.

    Regards,

    Thread Starter israelinas

    (@israelinas)

    Hi,

    @wfpeter are you there?

    Regards,

    Plugin Support wfpeter

    (@wfpeter)

    Hi @israelinas,

    Permissions and owners on your WordPress installation would be changed using FTP, a hosting file manager (such as cPanel) or command-line commands if you have access. If you’re not comfortable checking or changing these, you should be able to ask your server admin or web host support for assistance.

    You could also try following the MySQLi instructions even if you don’t have errors showing in your diagnostics page as this would remove Wordfence’s need to write to physical files altogether and use a database instead.

    Thanks again,

    Peter.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Manually Refresh Rules – No rules were updated’ is closed to new replies.