Title: Getting php errors in the plugin library
Last modified: September 9, 2022

---

# Getting php errors in the plugin library

 *  Resolved [piyushpcrafter](https://wordpress.org/support/users/piyushpcrafter/)
 * (@piyushpcrafter)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/getting-php-errors-in-the-plugin-library/)
 * Hello,
 * We are using WordFence plugin on our website – [https://www.greencultured.co/](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](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/getting-php-errors-in-the-plugin-library/#post-16001846)
 * Hi [@piyushpcrafter](https://wordpress.org/support/users/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/](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.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [wordfence plugin](https://wordpress.org/support/topic-tag/wordfence-plugin/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/getting-php-errors-in-the-plugin-library/#post-16001846)
 * Status: resolved