This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello All,
When I click on "Check for updates" on backend site of October CMS I receive the following error message:
"curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set"
What does it mean and how could I fix it?
Thank you,
Imre
Edit the file in your root october cms: vendor\october\rain\src\Network\Http.php (on windows) | vendor/october/rain/src/Network/Http.php (on unix) Comment the line 233 like bellow:
/*
* Create and execute the cURL Resource
*/
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $this->url);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
//curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
In the same file comment the line 411 too, like bellow:
/**
* Disable follow location (redirects)
*/
public function noRedirect()
{
//$this->setOption(CURLOPT_FOLLOWLOCATION, false);
return $this;
}
This solved my problem.
For me, just follow this steps (if you are developing in localhost):
- Close WAMP (if running)
- Navigate to WAMP\bin\php(your version of php)\
- Edit php.ini
- Search for curl, uncomment extension=php_curl.dll
- Navigate to WAMP\bin\Apache(your version of apache)\bin\
- Edit php.ini
- Search for curl, uncomment extension=php_curl.dll
- Save both
- Restart WAMP
Ref: http://stackoverflow.com/questions/13021536/how-to-enable-curl-in-wamp-server
1-3 of 3