Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › curl_setopt error with download?
Tagged: allow_url_fopen, curl_setopt, Download Manager, estore, open_basedir, Safe_mode
- This topic has 23 replies, 4 voices, and was last updated 12 years, 3 months ago by wzp.
-
AuthorPosts
-
July 29, 2012 at 10:11 pm #7017orianaMember
Hi
I just set up an eStore and was thrilled with how easy it all was to set up. BUT when I tested the download, I got this error message:
***
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /nfs/c07/h03/mnt/105219/domains/unfetteredmovement.org/html/wp-content/plugins/wp-cart-for-digital-products/download.php on line 316
The secure download manager ran into a problem that it couldn’t handle, and is unable to process your download request. Please contact the site administrator.
Please tell the site administrator the problem was due to the following reason:
Unable to set cURL transfer options.
***
I searched the forums and found a few threads that were technically above my head.
Any idea what’s wrong? These downloads are pretty large (45 – 60 minutes) I tested two different ones and got the same error.
Thanks!
July 30, 2012 at 1:31 am #47869wzpModeratorYou got the error message, because your hosting account is running with the PHP “safe mode” activated.
You could try a different download method, but because you stated that your downloads are “pretty large,” I suspect you will end up using the Amazon S3 integration method to download your files.
http://www.tipsandtricks-hq.com/ecommerce/selling-large-files-with-wp-estore-796
July 30, 2012 at 6:53 pm #47870orianaMemberOk, thanks fo getting back to me.
So before trying the Amazon S3 integration (makes my head hurt to read about it) should I just try to change PHP safe mode directly with my server?
July 30, 2012 at 7:00 pm #47871orianaMemberOk, thanks fo getting back to me.
July 30, 2012 at 11:30 pm #47872PeterMemberHi,
Regarding the amazon S3 stuff just watch the video on this page and you should be ok:
July 30, 2012 at 11:38 pm #47873wzpModeratorUnless you control your own server, only your hosting provider can turn off php safe mode.
July 31, 2012 at 1:38 pm #47874orianaMemberMy hosting provider confirmed that the safe mode is turned off by default. So that’s not it.
My downloads are large (45 – 60 minutes) BUT I just did a test with an MP3 that’s only a few minutes long.
Same error message. Here’s the link:
Help!
July 31, 2012 at 3:36 pm #47875wzpModeratorWhat version of PHP are you using?
July 31, 2012 at 7:03 pm #47876orianaMemberPHP 5.3
July 31, 2012 at 8:21 pm #47877wzpModeratorAnd which download method are you using?
July 31, 2012 at 9:46 pm #47878orianaMemberI have the downloadable checkbox checked. Is that what you’re asking?
The truth is I am not sure what method I am using. Where would I find that?
August 1, 2012 at 12:53 am #47879IvyMemberThe download methods are the different configuration for the download to be served to the customer. Each sever is configured differently so you may need to use one of these different methods.
You can read about this here here (point number 5):
https://support.tipsandtricks-hq.com/forums/topic/downloaded-file-size-is-0-zero-byte
August 1, 2012 at 11:10 am #47880orianaMemberI just tested all of the alternate download methods and none work.
I did this using the same link – I assume this is a good test, but let me know if I need to purchase an item and receive a fresh new download link each time in order to test it
I’ve also been in touch with my hosting provider who says:
***
With safe mode disabled on the (gs) Grid-Service, the only other reason for this to be occurring would be due to having open_basedir set. It’s not advised to completely disable open_basedir, as it can mean one site that gets compromised will be able to attack other sites on your account. However if this is the only method able to resolve this issue with your ecommerce site, you’ll have to add the following line inside your php.ini file:
open_basedir = “none”
***
This seems like a bad idea to me.
Any other thoughts?
August 1, 2012 at 11:25 am #47881orianaMemberOk. I just unclicked the “downloadable” checkbox and the downloads work.
I am redirected to the url and the audio streams, no problem.
This is not what I want, but perhaps this gives more clues about what the problem is?
August 1, 2012 at 11:26 am #47882wzpModeratorPlease add that line to your php.ini file and try again. You can also create “fresh download links” by using the eStore –> Admin Functions pag; instead of making test purchases.
-
AuthorPosts
- You must be logged in to reply to this topic.