Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

upsxml error


zpupster

Recommended Posts

hello forum,

 

i have osc 2.3.1 and upsxml and 1,4 on my host working fine on my hosting service.

 

but on my local testing server.

 

i have got a number of earlier errors before but i fixed those i am down to this one

 

on wamp on my localhost i am getting this error:

) Warning: error_log() [function.error-log]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\stead\includes\modules\shipping\upsxml.php on line 767 Call Stack # Time Memory Function Location 1 0.0044 481992 {main}( ) ..\checkout_shipping.php:0 2 0.3211 3061840 shipping->quote( ) ..\checkout_shipping.php:141 3 0.3215 3062672 upsxml->quote( ) ..\shipping.php:81 4 0.3244 3066472 upsxml->_upsGetQuote( ) ..\upsxml.php:298 5 0.6106 3071040 upsxml->_parseResult( ) ..\upsxml.php:648 6 0.6137 3073064 error_log ( ) ..\upsxml.php:767

 

 

and this show as my shipping methodf::

 

This is currently the only shipping method available to use on this order.

 

United Parcel Service shipping_ups.gif

:

If you prefer to use UPS as your shipping method, please contact Comtalkinc via Email.

 

 

any suggestions,

 

 

craig

Link to comment
Share on other sites

i used the error log in the instruction and this is the error i received--

 

i chnaged

$this->use_exec = '1';

from 0 to 1 becasue i am on a wamp server.

 

can anyone help me in figuring out what is wrong here.

 

 

 

------------------------------------------
DATE AND TIME: 2012-03-01 16:23:00
UPS URL: https://wwwcie.ups.com:443/ups.app/xml/Rate
UPS REQUEST using exec(): <?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
  <AccessLicenseNumber>5C65A894C46ED540</AccessLicenseNumber>
  <UserId>[email protected]</UserId>
  <Password>verity77</Password>
</AccessRequest>
<?xml version="1.0"?>
<RatingServiceSelectionRequest xml:lang="en-US">
  <Request>
   <TransactionReference>
	   <CustomerContext>Rating and Service</CustomerContext>
	   <XpciVersion>1.0001</XpciVersion>
   </TransactionReference>
   <RequestAction>Rate</RequestAction>
   <RequestOption>shop</RequestOption>
  </Request>
  <PickupType>
   <Code>01</Code>
  </PickupType>
  <Shipment>
   <Shipper>
	   <Address>
		   <City>Satsuma</City>
		   <StateProvinceCode>AL</StateProvinceCode>
		   <CountryCode>US</CountryCode>
		   <PostalCode>36572</PostalCode>
	   </Address>
   </Shipper>
   <ShipTo>
	   <Address>
		   <City>westmont</City>
		   <StateProvinceCode>IL</StateProvinceCode>
		   <CountryCode>US</CountryCode>
		   <PostalCode>60559</PostalCode>
	   </Address>
   </ShipTo>
   <Package>
	   <PackagingType>
		   <Code>02</Code>
	   </PackagingType>
	   <PackageWeight>
		   <UnitOfMeasurement>
			   <Code>LBS</Code>
		   </UnitOfMeasurement>
		   <Weight>13</Weight>
	   </PackageWeight>
	   <PackageServiceOptions>
		   <InsuredValue>
			   <CurrencyCode></CurrencyCode>
			   <MonetaryValue>281.00</MonetaryValue>
		   </InsuredValue>
	   </PackageServiceOptions>
   </Package>
  </Shipment>
  <CustomerClassification>
   <Code>01</Code>
  </CustomerClassification>
</RatingServiceSelectionRequest>
Error from cURL using exec() since there is no $xmlResponse
UPS RESPONSE using exec():

 

craig

Link to comment
Share on other sites

hello forum,

 

the problem is fixed:

 

i turnedthe exec() to 0.

 

went into admin and turned off email from ups.

 

which stopped all errors onpage but received no shipping quotes.

 

in the upsxml error log i received this errors:

 

Error from cURL: Error [60]: SSL certificate problem, verify that the CA cert is OK. Details:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

UPS RESPONSE

 

found this in upsxml.php (lines shown uncommented here):

 

 // uncomment the next line if you get curl error 60: error setting certificate verify locations
	    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
	    // uncommenting the next line is most likely not necessary in case of error 60
	  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

 

 

congrats to me --i placed my solution here for others to find--

now receiving shipping quotes on my test server.

 

craig

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...