Title: function.curl-setopt error remaining
Last modified: August 21, 2016

---

# function.curl-setopt error remaining

 *  Resolved [Franky27](https://wordpress.org/support/users/franky27/)
 * (@franky27)
 * [13 years ago](https://wordpress.org/support/topic/functioncurl-setopt-error-remaining/)
 * I can not get this problem solved.
 * What should I do?
 * Error:
 * Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot 
   be activated when safe_mode is enabled or an open_basedir is set in /home/easywww/
   domains/easyfile.nl/public_html/wp-content/plugins/wp-portfolio/lib/thumbnailer.
   inc.php on line 750 Warning: fopen(/home/easywww/domains/easyfile.nl/public_html/
   wp-content/plugins/wp-portfolio/cache/b9b247ecad390bd3c48de60afaed38f0_b03f7a81ebc83e07a734a8c9194db9c6.
   jpg) [function.fopen]: failed to open stream: Permission denied in /home/easywww/
   domains/easyfile.nl/public_html/wp-content/plugins/wp-portfolio/lib/thumbnailer.
   inc.php on line 761 Warning: fputs(): supplied argument is not a valid stream
   resource in /home/easywww/domains/easyfile.nl/public_html/wp-content/plugins/
   wp-portfolio/lib/thumbnailer.inc.php on line 762 Warning: fclose(): supplied 
   argument is not a valid stream resource in /home/easywww/domains/easyfile.nl/
   public_html/wp-content/plugins/wp-portfolio/lib/thumbnailer.inc.php on line 763
   Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot 
   be activated when safe_mode is enabled or an open_basedir is set in /home/easywww/
   domains/easyfile.nl/public_html/wp-content/plugins/wp-portfolio/lib/thumbnailer.
   inc.php on line 750 Warning: fopen(/home/easywww/domains/easyfile.nl/public_html/
   wp-content/plugins/wp-portfolio/cache/53c3ba0e47a645b97147596582f6eb20_32fb51fe257e4d2e600b3e4f8595113b.
   jpg)
 * [http://wordpress.org/extend/plugins/wp-portfolio/](http://wordpress.org/extend/plugins/wp-portfolio/)

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

 *  [Dan Harrison](https://wordpress.org/support/users/danharrison/)
 * (@danharrison)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/functioncurl-setopt-error-remaining/#post-3765772)
 * Your hosting company has aggressive security enabled on your hosting. Which means
   a simple little setting breaks the whole plugin.
 * Try enabling the alternative ‘Thumbnail Fetch Method’ in the ‘Portfolio Settings’
   to fopen.
 * If that doesn’t work, change back to cURL, then you’ll need to edit:
    wp-content/
   plugins/wp-portfolio/lib/thumbnailer.inc.php
 * Line 750, and change:
    `curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);`
 * to:
    `//curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);`
 * Regards
    Dan
 *  Thread Starter [Franky27](https://wordpress.org/support/users/franky27/)
 * (@franky27)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/functioncurl-setopt-error-remaining/#post-3765774)
 * Thanks Dan but I allready did that before but with no result.
 * Reg Frank
 *  [Dan Harrison](https://wordpress.org/support/users/danharrison/)
 * (@danharrison)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/functioncurl-setopt-error-remaining/#post-3765814)
 * The code change should fix the error…

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

The topic ‘function.curl-setopt error remaining’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-portfolio_fefefe.svg)
 * [Wordpress Portfolio Plugin (WP Portfolio)](https://wordpress.org/plugins/wp-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-portfolio/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Dan Harrison](https://wordpress.org/support/users/danharrison/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/functioncurl-setopt-error-remaining/#post-3765814)
 * Status: resolved