• Resolved piyushpcrafter

    (@piyushpcrafter)


    Hello,

    We are using WordFence plugin on our website – https://www.greencultured.co/

    There are some errors/issue on the website and on investigating we found that these are the errors coming from WordFence plugin, please check –

    Warning: fopen(/nas/content/live/greencultured/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /nas/content/live/greencultured/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 332
    Warning: include(/nas/content/live/greencultured/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /nas/content/live/greencultured/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 335
    Warning: include(): Failed opening '/nas/content/live/greencultured/wp-content/wflogs/rules.php' for inclusion (include_path='.:/usr/share/php') in /nas/content/live/greencultured/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 335

    We would really appreciate it if you’ll help us to get these issues resolved.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @piyushpcrafter, thanks for reaching out to us!

    The wflogs files are updated pretty frequently so sometimes these can get corrupted or ‘locked’ in some way. I’d check that your WordPress folders have 755 permissions and a process owner of www-data.

    If all that seems good, navigate to your wp-content/wflogs folder and delete the contents entirely. Wordfence should try to repopulate it within 30 minutes so could solve any issues if the files are corrupted or unusually large.

    If you continue to have persistent problems with files in this 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Getting php errors in the plugin library’ is closed to new replies.