Hi --

I cannot create containers because of this warning:

warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/wpvids/domains/example.com/public_html/sites/all/modules/storage_api/services/s3/storage_s3.module on line 127.

Here is the code in question:

$ch = curl_init('http://' . $bucket . 's3.amazonaws.com' . $object_name);

curl_setopt_array($ch, $curl_options);
$transfer = curl_exec($ch);
$result += curl_getinfo($ch);
curl_close($ch);

This is from the .info file:
; $Id: storage_api.info,v 1.2.4.2 2009/04/29 20:09:03 jbrown Exp $
name = Storage API
description = "Storage module."
package = Storage
dependencies[] = mimedetect
core = 6.x
php = 5.0

I am pulling out my hair. I would appreciate any advice!

Thanks --

Missy.

Comments

jbrown’s picture

Please check your configuration. safe_mode is not suported by drupal.

Also check open_basedir.

visualfox’s picture

If you are using plesk this article should help you with disabling open_basedir
http://blog.serverbuddies.com/disable-open_basedir-in-plesk/

jbrown’s picture

Status: Active » Closed (won't fix)
salvis’s picture

Status: Closed (won't fix) » Active

I don't really want to disable open_basedir because I think it's a valuable security feature.

Can this not be made compatible with open_basedir?

For me it's Local Storage and video transcoding resulting in

warning: curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in modules/storage_api/storage_api.module on line 1501.

perignon’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

I am a new co-maintainer for Storage_API. Drupal 6 is coming toward end of life as soon as D8 is released which should be by the end of 2014. Due to that, I am going to be closing all 6.x issues as it's a hurdle too far to overcome with the amount of issues in the queue against this module.