Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

curl_setopt error with download?

by

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, 10 months ago by wzp.
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • Author
    Posts
  • July 29, 2012 at 10:11 pm #7017
    oriana
    Member

    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 #47869
    wzp
    Moderator

    You 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 #47870
    oriana
    Member

    Ok, 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 #47871
    oriana
    Member

    Ok, thanks fo getting back to me.

    July 30, 2012 at 11:30 pm #47872
    Peter
    Member

    Hi,

    Regarding the amazon S3 stuff just watch the video on this page and you should be ok:

    http://www.tipsandtricks-hq.com/ecommerce/amazon-web-services-simple-storage-service-aws-s3-integration-1101

    July 30, 2012 at 11:38 pm #47873
    wzp
    Moderator

    Unless you control your own server, only your hosting provider can turn off php safe mode.

    July 31, 2012 at 1:38 pm #47874
    oriana
    Member

    My 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:

    http://www.unfetteredmovement.org/wp-content/plugins/wp-cart-for-digital-products/download.php?file=3lrX%2FikHUfOUhKvrgA%3D%3D

    Help!

    July 31, 2012 at 3:36 pm #47875
    wzp
    Moderator

    What version of PHP are you using?

    July 31, 2012 at 7:03 pm #47876
    oriana
    Member

    PHP 5.3

    July 31, 2012 at 8:21 pm #47877
    wzp
    Moderator

    And which download method are you using?

    July 31, 2012 at 9:46 pm #47878
    oriana
    Member

    I 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 #47879
    Ivy
    Member

    The 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 #47880
    oriana
    Member

    I 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 #47881
    oriana
    Member

    Ok. 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 #47882
    wzp
    Moderator

    Please 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.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ