Title: Failed Stream
Last modified: June 28, 2017

---

# Failed Stream

 *  Resolved [trwhite6878](https://wordpress.org/support/users/trwhite6878/)
 * (@trwhite6878)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/failed-stream/)
 * I moved my WordPress site, upgraded PHP before I disabled the firewall. Site 
   wouldn’t load so I downgraded back to PHP 5.6. Great, except I am getting the
   same error I got when migrating to a new domain. Failed opening required ‘/public_html/
   wordfence-waf.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’).
 * I have followed all the above directions: add define(‘WFWAF_ENABLED’, false);
   to wp-config. That didn’t work. Add it to the waf.php file above if. That didn’t
   work. There are no auto-prepend files in my .htacess or php.ini files.
 * I hope I am not screwed.

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

 *  Thread Starter [trwhite6878](https://wordpress.org/support/users/trwhite6878/)
 * (@trwhite6878)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/failed-stream/#post-9268204)
 * Going back to PHP 5.6 fixed it.
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/failed-stream/#post-9284443)
 * Hi,
    Just in case you encountered this issue again, if your new domain has a 
   different path for “wordfence-waf.php” file, then you will need to modify “.user.
   ini” or “.htaccess” file or even “php.ini” file, to correct this path in this
   line `auto_prepend_file '/var/www/html/wordfence-waf.php'`.
 * Thanks.

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

The topic ‘Failed Stream’ 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](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/failed-stream/#post-9284443)
 * Status: resolved