Re: Shopping Estimator Stopped Working!
Quote:
Originally Posted by
sle39lvr
The Shipping Estimator stopped showing actual estimates. I have UPS enabled and has been working this whole time.
Nothing on Error log.
while the symptoms may be the same (no estimates and no logs), that does not mean the problem is the same.
creating a curl transaction; sending it to an outside server; and then parsing the results can be fraught with errors.
i can not provide any info on the old plug-in module; i can only help if you want to go forward with your current situation. which you think is the curl transaction as that is the code you posted.
best.
Re: Shopping Estimator Stopped Working!
Understood. I will be testing what's on your previous post now.
Re: Shopping Estimator Stopped Working!
I got this from ups_error.log
Code:
* About to connect() to www.ups.com port 443 (#0)
* Trying 23.43.242.135... * connected
* Connected to www.ups.com (23.43.242.135) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* subject: CN=www.ups.com,OU=Unified Communications,OU=Hosted by United Parcel Service,OU=886234 - J2EE,O=United Parcel Service,STREET=340 MacArthur Blvd.,L=Mahwah,ST=NJ,postalCode=07430,C=US
* start date: Apr 24 00:00:00 2018 GMT
* expire date: Apr 23 23:59:59 2020 GMT
* common name: www.ups.com
* issuer: CN=COMODO RSA Organization Validation Secure Server CA,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB
> GET /using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&13_product=GNDRES&14_origCountry=US&15_origPostal=33455&19_destPostal=34997&22_destCountry=US&23_weight=3.9&47_rate_chart=Customer+Counter&48_container=00&49_residential=1 HTTP/1.1
User-Agent: Zen Cart quote inquiry
Host: www.ups.com
Accept: */*
< HTTP/1.1 403 Forbidden
< Server: AkamaiGHost
< Mime-Version: 1.0
< Content-Type: text/html
< Content-Length: 314
< Expires: Fri, 11 Jan 2019 17:06:16 GMT
< Date: Fri, 11 Jan 2019 17:06:16 GMT
< Connection: close
< Server-Timing: cdn-cache; desc=HIT
< Server-Timing: edge; dur=0
<
* Closing connection #0
Re: Shopping Estimator Stopped Working!
pretty cool, eh?
as you can see in the response, you are getting a 403 forbidden. so you are indeed having a problem with your curl request.
have you checked your server using ssllabs? put your website name here:
https://www.ssllabs.com/ssltest/
and let's see what sort of ssl problems you might be having.
i have a feeling you might be using the wrong tls encryption. but i could be wrong.... see:
https://www.ups.com/us/en/help-cente...-security.page
this file also gives you something that you can talk to the ups technical support people to see why you are getting the 403 forbidden.
hope that gives you a few places to start.
let us know what you find out.
1 Attachment(s)
Re: Shopping Estimator Stopped Working!
1 Attachment(s)
Re: Shopping Estimator Stopped Working!
what about this part:
Attachment 18261
1 Attachment(s)
Re: Shopping Estimator Stopped Working!
Re: Shopping Estimator Stopped Working!
- you should talk to your host about disabling tls 1.0. see: https://www.globalsign.com/en/blog/d...-ssl-versions/
- you should read the notes on the downloads page for this module: UPS United Parcel Service - Version: 2015-12-30
This update only contains technical changes:
- switched to use CURL instead of the aging http_client for communications, as http_client is being retired
- self-check for future plugin updates
(explains your comment from above) - you can also look at the code to see how to get responses:
Code:
// BOF: UPS
/*
TEST by checking out in the catalog; try a variety of shipping destinations to be sure
your customers will be properly served. If you are not getting any quotes, try enabling
more alternatives in admin. Make sure your store's postal code is set in Admin ->
Configuration -> Shipping/Packaging, since you won't get any quotes unless there is
a origin that UPS recognizes.
If you STILL don't get any quotes, here is a way to find out exactly what UPS is sending
back in response to rate quote request, you can uncomment the following mail() line and
then check your email after visiting the shipping page in checkout ...
*/
//mail(STORE_OWNER_EMAIL_ADDRESS, 'UPS response', $body, 'From: <'.STORE_OWNER_EMAIL_ADDRESS.'>');
// EOF: UPS
- i would contact UPS technical support to see why you are getting a forbidden response.
best.
Re: Shopping Estimator Stopped Working!
Looks like UPS, FEDEX, USPS...all those modules do not work. My hosting is HostMonster.
Re: Shopping Estimator Stopped Working!
I found UPS module working yesterday. Today, it doesn't seem to work again. Still have to contact Host Monster.