Title: PHP Warning: fopen()
Last modified: June 19, 2017

---

# PHP Warning: fopen()

 *  Resolved [niska](https://wordpress.org/support/users/niska/)
 * (@niska)
 * [9 years ago](https://wordpress.org/support/topic/php-warning-fopen-3/)
 * I have allow_url_fopen disabled in php.ini – but it seems wordfence needs it 
   to be on. I get this warning:
 * `PHP message: PHP Warning: fopen(): https:// wrapper is disabled in the server
   configuration by allow_url_fopen=0 in /www/domain.com/public_html/wp-content/
   plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php on line 409`
 * However. I’ve read several security blogs that say that allow_url_fopen should
   not be enabled. Disabling is best for security.
 * Any takes on this?

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

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years ago](https://wordpress.org/support/topic/php-warning-fopen-3/#post-9246121)
 * Hi niska,
    Please go to (Wordfence > Tools > Diagnostics) and let me know what
   you can see under “Checking for cURL support”? also, while being on the same 
   page, check PHP version.
 * Thanks.
 *  Thread Starter [niska](https://wordpress.org/support/users/niska/)
 * (@niska)
 * [9 years ago](https://wordpress.org/support/topic/php-warning-fopen-3/#post-9247593)
 * It says:
 * Checking for cURL support
    FAIL
 * PHP version >= PHP 5.2.4 (Minimum version required by WordPress)
    7.0.20-1~dotdeb
   +8.1
 * So I need to enable cURL support?
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years ago](https://wordpress.org/support/topic/php-warning-fopen-3/#post-9248148)
 * Hi,
    If cURL wasn’t installed the plugin will use “fopen()” which seems to be
   disabled on your server too, so you will have to enable/install any of them.
 * Thanks.
 *  [wfchloe](https://wordpress.org/support/users/wfchloe/)
 * (@wfchloe)
 * [9 years ago](https://wordpress.org/support/topic/php-warning-fopen-3/#post-9314120)
 * Hello!
 * I hope we were successful in helping you resolve your issue with Wordfence! Since
   we have not heard back from you in the past 2 weeks I will now be marking this
   support thread as resolved. However, if we still haven’t resolved your issue 
   please reach out to us as we would be more than happy to further assist you!
 * Thanks and have a great day!
    Chloe

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

The topic ‘PHP Warning: fopen()’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [wfchloe](https://wordpress.org/support/users/wfchloe/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/php-warning-fopen-3/#post-9314120)
 * Status: resolved