Hi,

I've just moved a site form one server to another and have now started getting the following errors when uploading new videos. The full warning is;

    * warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /var/www/vhosts/sitename.com/httpdocs/sites/all/modules/flashvideo/plugins/flashvideo_s3/S3.php on line 1256.

Extra info...I'm using SSL, and have created both a vhost.conf as well as a vhost_ssl.conf for certain open_basedir settings as is required for my server. Safe mode is also OFF.

Oh, and this warning is repeated 5 times for one upload.

Has anyone come across this before or have an idea what I may have missed?

Many thanks :)

Comments

attheshow’s picture

Component: Miscellaneous » Amazon Plugin
travist’s picture

I have seen this issue before, but have noticed that it only is caused on certain server configurations. Have you tried figuring out what the open_basedir is set too?

One thing you can do is just comment out this line. The line that says...

curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);

This line isn't completely necessary to make the module work, so I would just recommend commenting out this line for your installation and see if that works...

If it does, then I will investigate further to see what is causing this command to fail.

Hope this helps.

Travis.

axel pressbutton’s picture

Sorry for the delay in getting back to you Travis...

I've commented out line 1256 in /sites/all/modules/flashvideo/plugins/flashvideo_s3/s3.php and no longer get the error mentioned above.

The videos still aren't showing but i also noticed that prior to, and after commenting out that line also get the following error;

Duplicate entry '1266' for key 1 query: INSERT INTO flashvideo_s3 (fid, bucket, did, domain, status, operation) VALUES (1266, 'zodbod-videos-sites-default-files', '', '', 'InProgress', 'ACTIVE') in /var/www/vhosts/sitename.com/httpdocs/sites/all/modules/flashvideo/plugins/flashvideo_s3/flashvideo_s3.module on line 277.