Title: PHP Warning and Error: require_once
Last modified: September 1, 2016

---

# PHP Warning and Error: require_once

 *  [Jane](https://wordpress.org/support/users/jstepak/)
 * (@jstepak)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-warning-and-error-require_once/)
 * We are getting the following errors in our error_log file:
 * [12-Aug-2016 08:57:20] PHP Warning: require_once(vendor/wordfence/wf-waf/src/
   init.php) [[function.require-once](https://wordpress.org/support/topic/php-warning-and-error-require_once/function.require-once?output_format=md)]:
   failed to open stream: No such file or directory in /home2/thecoma5/public_html/
   thecollaborativebeta/wp-content/plugins/wordfence/wordfence.php on line 51
    [
   12-Aug-2016 08:57:20] PHP Fatal error: require_once() [[function.require](https://wordpress.org/support/topic/php-warning-and-error-require_once/function.require?output_format=md)]:
   Failed opening required ‘vendor/wordfence/wf-waf/src/init.php’ (include_path=’.:/
   usr/lib64/php:/usr/share/pear’) in /home2/thecoma5/public_html/thecollaborativebeta/
   wp-content/plugins/wordfence/wordfence.php on line 51
 * Can you help me figure out what is causing these messages?
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-warning-and-error-require_once/#post-7698468)
 * Hi Jane,
    Are you using an old version of Wordfence?
 *  Thread Starter [Jane](https://wordpress.org/support/users/jstepak/)
 * (@jstepak)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-warning-and-error-require_once/#post-7698478)
 * Thanks so much for checking in! We now have the latest version of WordPress installed
   but it’s possible when this error was generated (on August 12, 2016) that we 
   didn’t.
 * Just so I know – Can you explain what would generate these error messages? Was
   there a particular file that was missing at the time the error was generated?
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-warning-and-error-require_once/#post-7698500)
 * Hi Jane,
    Okay, just wanted to make sure! Yes it was either missing, corrupt 
   or had the wrong owner/permissions which would have made it inaccessible. Why
   it was inaccessible is hard to say. I can think of one scenario where this could
   theoretically happen; if for example someone tried to visit your site in the 
   midst of it being restored from a backup. In other words, it’s likely that something
   was going on with your file system a this time. Unless you are seeing the error
   frequently of course. If you are seeing it all the time I would suggest you remove
   the wordfence folder in the wp-content/plugins folder and replace it with a fresh
   copy.

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

The topic ‘PHP Warning and Error: require_once’ 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

 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)
 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)
 * [require_once](https://wordpress.org/support/topic-tag/require_once/)

 * 3 replies
 * 2 participants
 * Last reply from: [wfasa](https://wordpress.org/support/users/wfasa/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/php-warning-and-error-require_once/#post-7698500)
 * Status: not resolved