• Hi,

    I installed Wordfence a couple of weeks ago on my site.
    I want to turn off learning mode on the firewall but it doesn’t take effect.
    When I change this setting and click save, it seems like it works, but when the page reloads, learning mode is still enabled.
    Checking the console, there are no JS errors when changing this setting.
    Checking the diagnostic page, it is green across the board, with proper access to MySQL and read/write access.

    It also seems like learning mode should switch off automatically after a week, but this hasn’t happened either. When the settings page is loaded, the switch off date is always a week from today’s date (the date I am loading the page).

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support wfscott

    (@wfscott)

    @tobybloem

    This may be related to an issue with your wflogs folder, which is where the firewall configuration is stored. That folder should reside in the wp-content folder. Check that it exists there and has normal permissions.

    You could also delete that wflogs folder, as it will regenerate on the next site visit. Deleting the folder will put the site into the 7-day Learning Mode. Once you delete it, go back to the site and try putting it into Enabled and Protecting and see if it sticks. Keep in mind you will lose any current Whitelsited URLs you have set in Wordfence > Firewall > All Firewall Options > Whitelisted URLs — you can screenshot those or copy them down first if need be.

    Scott

    Thread Starter tobybloem

    (@tobybloem)

    Thanks @wfscott

    I deleted the wflogs folder and tried to switch the firewall on again, and I’m having the same problem.
    Curiously, looking in FTP, it hasn’t seemed to have created config.php, which I’m told should exist in this folder.

    Diagnostic page still says it can read and write to ~/wp-content/wflogs

    I second this issue. On all my websites with latest WP and WF versions

    Plugin Support wfscott

    (@wfscott)

    @tobybloem

    Thanks for the information.

    Could you please send over diagnostics to wftest@wordfence.com via Wordfence > Tools > Diagnostics > Send report by Email.

    Please put your forum username in the 2nd field there and let me know here when it is sent.

    Also, who is your hosting provider?

    Thanks,
    Scott

    Thread Starter tobybloem

    (@tobybloem)

    Thanks Scott,

    I’ve sent that email now.

    I’m self hosting with Azure app service on linux

    Plugin Support wfscott

    (@wfscott)

    @tobybloem

    Sorry for the delay here. I’m not seeing anything in the diagnostics that would suggest needing changed.

    Can you try changing one of the settings in Wordfence > All Options, such as one of the Brute Force or Rate Limiting settings and then click Save Changes on the top of the page and try refreshing the page. Do the changes stick or do they get reverted back?

    If they are being reverted back, the database may be corrupt or have permission issues. I would recommend a complete re-install (and wiping the database tables). There is a setting in Wordfence > All Options > General Wordfence Options which makes this easier — Delete Wordfence tables and data on deactivation. If you enable that, simply deactivating the plugin will clear the tables. I recommend disabling the Extended Firewall first (Remove Extended Protection button in Wordfence > Firewall > All Firewall Options > Protection Level). If you see “Optimize Wordfence Firewall” there instead, you can skip that step.

    You can then delete the plugin and re-install it and see if the same issues occur. If so, we will need to look at permissions issues.

    Thread Starter tobybloem

    (@tobybloem)

    Hi Scott,

    I changed the Lock out after how many forgot password attempts and it did seem to work.

    Regardless, I tried your complete re-install steps, and unfortunately I’m still seeing the same problems.

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

The topic ‘Can’t turn off firewall learning mode’ is closed to new replies.