Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

one last thing on my store...cant go live anymore


211655

Recommended Posts

Posted

hi i m using sts, osc ms2, fedex module, win2003 server authorize.net contr. aim v.17.

i get this error for fedex. this shows under fedex heading in checkout_shipping.php

No response to CURL from Fedex server, check CURL availability, or maybe timeout was set too low, or maybe the Fedex site is down

 

now on part of authorize.net, i cant have it running bcoz of curl issue. my hosting company sweres they have curl. someone told that i should check if they have ssl versions. they have latest one for windows version. ssl one.

 

its still not running. i hate my self. i have recieved no answer from anyone yet. please help.

 

thanks

dan

Posted

Ok here is your answer.

 

Try adding this option in the fedex module.

 

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

 

You might play with this test script first.

 

<?php
//Filename: curl_test.php

$ch = curl_init();

curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

curl_setopt($ch, CURLOPT_URL, "https://www.stanford.edu/group/idg/leland/samples/secure/test.html");

$result = curl_exec($ch);

echo '<pre>';
print_r(curl_getinfo($ch));
echo '</pre>';

echo 'Errors: ' . curl_errno($ch) . ' ' . curl_error($ch) . '<br><br>';

curl_close ($ch);

echo $result . 'EOF';
?>

Posted

by going to admin/tools/serverinfo you can call that, then search for curl. it is most likely there.

Posted

thanks john. i do have curl and it is latest for windows with ssl enabled. i can seein server info.

my setings:

.

.

.

.metor id: none

curl: not compiled. (windows)

path: d:/php/curl

.

.

.

 

what else i need. i swere i m so frsutraed that cant do anything. is there something wrong with ssl connection or my ssl certificate. or osc. coz my host has tested a page out in curl and it works fine.

 

this is what i get when i use above code and test curl_test.php

Array
(
   [url] => https://www.stanford.edu/group/idg/leland/samples/secure/test.html
   [http_code] => 0
   [header_size] => 0
   [request_size] => 0
   [filetime] => -1
   [ssl_verify_result] => 0
   [redirect_count] => 0
   [total_time] => 0
   [namelookup_time] => 0.262
   [connect_time] => 0.349
   [pretransfer_time] => 0
   [size_upload] => 0
   [size_download] => 0
   [speed_download] => 0
   [speed_upload] => 0
   [download_content_length] => 0
   [upload_content_length] => 0
   [starttransfer_time] => 0
   [redirect_time] => 0
)

Errors: 60 SSL certificate problem, verify that the CA cert is OK

EOF* About to connect() to www.stanford.edu:443 * Connected to www.LB-A.stanford.edu (171.67.16.68) port 443 * SSL certificate problem, verify that the CA cert is OK * Closing connection #0

 

btw i have added that line fedex1.php (curt_setop...)

help.... please

Posted

Try adding both of these like so

 

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

 

        $ch = curl_init();
       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       curl_setopt($ch, CURLOPT_URL, 'https://' . $this->server);
       if (MODULE_SHIPPING_FEDEX1_TIMEOUT != 'NONE') curl_setopt($ch, CURLOPT_TIMEOUT, MODULE_SHIPPING_FEDEX1_TIMEOUT);
       curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
       curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
       curl_setopt($ch, CURLOPT_HTTPHEADER, array("Referer: " . STORE_NAME,
                                                  "Host: " . $this->server,
                                                  "Accept: image/gif,image/jpeg,image/pjpeg,text/plain,text/html,*/*",
                                                  "Pragma:",
                                                  "Content-Type:image/gif"));
       curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
       $reply = curl_exec($ch);
       curl_close ($ch);

Posted

hi,

i have tried this way and even tested with putting d:/php/curl/curl.exe and installing crt (something like that as somone suggested) nothing works...NOTHING. i hate this. now my simple credit card module doesnt even show up.

gosh i hate this

Posted

i checked and i dont have shared ssl and we got it from geotrust.

curl path is as same: d:/php/curl/curl.exe

i have correct/new trasnsaction key

correct username

curl is not compiled (is binary)

curl is there in server info

it supports ssl, open ssl. latest for windows.

 

still authorize.net doesnt work

still fedex doesnt work

 

anyone is this earth knows the problem?

 

please....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...