When I tried installing the YouTube module, it seemed to have installed properly and so I created the page in the admin panel. When I tried to visit it on the live site, I get this error:
[Warning] curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set
GET /bigvote/videos/
Line 104 in /sapphire/api/RestfulService.php
SOURCE:
95
96 } else {
97 $ch = curl_init();
98 $timeout = 5;
99 $useragent = "SilverStripe/2.2";
100 curl_setopt($ch, CURLOPT_URL, $url);
101 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
102 curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
103 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
104 curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
105 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
106
107 // Add headers
108 if($this->customHeaders) {
109 $headers = array_merge((array)$this->customHeaders, (array)$headers);
110 }
Anyone has an idea why this is so?