• I just reinstalled my e-commerce plugin, and am getting this error message at my checkout page:
    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/deathsco/public_html/wp-content/plugins/wp-shopping-cart/shopping_cart.php on line 306

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having the same error message. It appears on my checkout page next to the sales tax line (tax is calculated for my state but not anywhere else).

    Did you find a solution? I’m desperate to figure out what to do to fix this.

    Thanks.

    Try to put this in the lines 301-311 instead of those in the file.
    I have added one line with “if” and {}
    I don’t know why but it is working 😉
    If you find a better decision, please mail it to me.

    Remember, you do it on your own risk!

    $url = ‘http://’.$usps_server.’/’ . $api_dll . ‘?’ . $request;
    $ch=curl_init();
    if (ini_get(‘open_basedir’) == ” && ini_get(‘safe_mode’ == ‘Off’)){
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_NOPROGRESS, 1);
    curl_setopt($ch, CURLOPT_VERBOSE, 1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 120);
    curl_setopt($ch, CURLOPT_USERAGENT, ‘osCommerce’);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); }
    $body = curl_exec($ch);

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘E-Commerce chrckout error’ is closed to new replies.