• Resolved Irene

    (@arlinaite)


    Hi,
    I have this worming, whats wrong? how to fix?

    Got error ‘PHP message: Error reading Wordfence Firewall config data, configuration file could be corrupted or inaccessible. Path: xxxxxxxxxxxxxxxx/public_html/wp-content/wflogs/config.php\n’

    Web Application Firewall
    Currently in Learning Mode

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Irene

    (@arlinaite)

    Cloudways support propose to fix this error by creating the .user.ini file having the content as follow:

    ; Wordfence WAF
    auto_prepend_file = 'path to wordfence-waf.php'
    ; END Wordfence WAF

    Could you confirm if this fixes the issue?

    Hi @arlinaite,

    Have you tried deleting the “wflogs” folder? It will automatically be recreated and populated when a visit occurs.

    HI @arlinaite,
    Just adding to what wfyann said here, I’m not sure how the .user.ini would help. What that is, is a file that would manually put in place the Wordfence Firewall Optimization. Is your Wordfence Firewall Optimized already?

    Either way, issues with the config.php file in wflogs could arise if you have several processes running on the server that have different ownership and group. If two processes are writing to it and they are not in the same group, you will get a permissions error.

    When this error happens, please check if the config.php file exists. If it does, check the group and owner of the file. Make note of this. Then you can compare that to the group and owner of all the other files in your WordPress installation. If they don’t match, then you know what the problem is.

    Hope that helps and keep us posted!

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP message: Error reading Wordfence Firewall config data’ is closed to new replies.