Title: PHP Warning:  curl_setopt() open_basedir
Last modified: August 30, 2016

---

# PHP Warning: curl_setopt() open_basedir

 *  Resolved [drazon](https://wordpress.org/support/users/drazon/)
 * (@drazon)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-warning-curl_setopt-open_basedir/)
 * Hi I get a PHP Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated
   when an open_basedir is set in
 * mydomain.com/wp-content/plugins/above-the-fold-optimization/includes/curl.class.
   php on line 86
 * Here is my open_basedir=”/absolute_path_to/mydomain.com/:/absolute_path_to/mydomain2.
   com/”
 * and I have safe mode off.
 * So how can I remove this warning and what exactly happens if I don’t remove it.
   So far I use only the two last optimization options without using the critical
   path css opt.
 * [https://wordpress.org/plugins/above-the-fold-optimization/](https://wordpress.org/plugins/above-the-fold-optimization/)

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

 *  Plugin Author [optimalisatie](https://wordpress.org/support/users/optimalisatie/)
 * (@optimalisatie)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-warning-curl_setopt-open_basedir/#post-6528168)
 * Hi Drazon!
 * My appologies for the late reply. My laptop got stolen so I lost a lot of time…
 * I will add an open_basedir check for the CURLOPT_FOLLOWLOCATION setting in the
   next update.
 * _[ [Signature moderated](http://codex.wordpress.org/Forum_Welcome#Signatures)]_
 *  Thread Starter [drazon](https://wordpress.org/support/users/drazon/)
 * (@drazon)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-curl_setopt-open_basedir/#post-6528193)
 * Hi there!
 * Any news related to this?
 * Thank you
 *  Plugin Author [optimalisatie](https://wordpress.org/support/users/optimalisatie/)
 * (@optimalisatie)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-curl_setopt-open_basedir/#post-6528204)
 * My apologies for the late reply.
 * The issue has been fixed in the next realease (v2.3.4).

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

The topic ‘PHP Warning: curl_setopt() open_basedir’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/above-the-fold-optimization_fcfbf6.
   svg)
 * [Page Speed Optimization](https://wordpress.org/plugins/above-the-fold-optimization/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/above-the-fold-optimization/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/above-the-fold-optimization/)
 * [Active Topics](https://wordpress.org/support/plugin/above-the-fold-optimization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/above-the-fold-optimization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/above-the-fold-optimization/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [optimalisatie](https://wordpress.org/support/users/optimalisatie/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-curl_setopt-open_basedir/#post-6528204)
 * Status: resolved