Chadduck 3 Posted April 18, 2019 Hello everyone - Before I begin the dreaded process of troubleshooting my UPS shipping issue I wanted to ask IF I am the only one that is having issues with UPS Choice 1.8.3. Shipping has been working fine for years. I received a phone call asking IF Priority Mail was the only method of shipping that we offered on Wednesday, April 17. 2019. Of course it was not, but it was the first time anyone had told me that there was no other option. Since the module is returning this error message (see image) We are unable to obtain a rate quote for UPS shipping. Please contact the store if no other alternative is shown I do NOT believe that the module is the issue HOWEVER I am of the opinion that UPS may have finally removed the cgi server since the module has this disclaimer in step 7 ------------------------------------ Disclaimer: This revision is based on ups.php v.1.54, which employs the UPS cgi method that has been deprecated for over a year and although it appears to remain functional is no longer officially supported by UPS. The currently supported UPS API requires XML requests through a secure socket layer, for which there is not yet an osC implementation. ------------------------------------ Is anyone else having this issue? Anyone have a suggestion for a similar module for replacement? BJ Share this post Link to post Share on other sites
Jack_mcs 1,054 Posted April 18, 2019 I've received reports from several of my clients that UPS is not working. According to this site most of the US is having problems. But according to UPS, only Iowa is affected. I checked sites that are in Canada and UPS is working for them so it is only a problem with the US, as far as I can tell. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
Chadduck 3 Posted April 18, 2019 Thanks Jack I did NOT believe it was just me - BUT strange things happen within the magical world of the internet. BJ Share this post Link to post Share on other sites
repete 2 Posted April 21, 2019 Got a fix for this.... Modify /includes/modules/shipping/ups.php changing line 267 from... if ($http->Connect('www.ups.com', 80)) { To.... if ($http->Connect('ssl://www.ups.com', 443)) { 2 OldPete and jrvs reacted to this Share this post Link to post Share on other sites
Chadduck 3 Posted April 21, 2019 THANK YOU!!! THANK YOU!!! THANK YOU!!! that is all I can say... WORKS LIKE A DREAM!!! 1 OldPete reacted to this Share this post Link to post Share on other sites
OldPete 2 Posted April 21, 2019 Yup! That fixed it! However I learned my lesson. I'll keep the XML one on "False" so I can just click over to it. Thank you, again, forum!! Pete 1 Chadduck reacted to this Share this post Link to post Share on other sites
Chadduck 3 Posted April 21, 2019 59 minutes ago, OldPete said: However I learned my lesson. I'll keep the XML one on "False" so I can just click over to it. OldPete In regards to the XML install - is there a cost for the access key? I started to move over to it UPS XML 1.7 but when I went to create the access key I got the impression that there was a charge. I stopped because of it. BJ Share this post Link to post Share on other sites
yungi 1 Posted May 3, 2019 (edited) On 4/20/2019 at 6:38 PM, repete said: Got a fix for this.... Modify /includes/modules/shipping/ups.php changing line 267 from... if ($http->Connect('www.ups.com', 80)) { To.... if ($http->Connect('ssl://www.ups.com', 443)) { it doesn't work for me.. not sure why!? here my code in ups.php. What did I do wrong? '19_destPostal=' . $this->_upsDestPostalCode, '22_destCountry=' . $this->_upsDestCountryCode, '23_weight=' . $this->_upsPackageWeight, '47_rate_chart=' . $this->_upsRateCode, '48_container=' . $this->_upsContainerCode, '49_residential=' . $this->_upsResComCode)); $http = new httpClient(); /* if ($http->Connect('www.ups.com', 80)) { */ if ($http->Connect('ssl://www.ups.com', 443?)) { $http->addHeader('Host', 'www.ups.com'); $http->addHeader('User-Agent', 'osCommerce'); $http->addHeader('Connection', 'Close'); if ($http->Get('/using/services/rave/qcostcgi.cgi?' . $request)) $body = $http->getBody(); $http->Disconnect(); } else { return 'error'; } $body_array = explode("\n", $body); Edited May 3, 2019 by yungi Share this post Link to post Share on other sites
Jack_mcs 1,054 Posted May 3, 2019 26 minutes ago, yungi said: if ($http->Connect('ssl://www.ups.com', 443?)) { Hi Yungi, :) The above should be if ($http->Connect('ssl://www.ups.com', 443)) { Also, UPS is going to stop the API for this module. They don't have a firm date but I'm guessing it will be this year. They will be keeping the UPS XML API so you need to install that module. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
yungi 1 Posted May 3, 2019 still doesn't work. Testing on dev .biz site. I'm already using UPS XML. I was hoping to get both working. Share this post Link to post Share on other sites
Chadduck 3 Posted May 3, 2019 Is there a cost for the UPS access KEY? Share this post Link to post Share on other sites
yungi 1 Posted May 3, 2019 12 hours ago, Jack_mcs said: if ($http->Connect('ssl://www.ups.com', 443)) { Also, UPS is going to stop the API for this module. They don't have a firm date but I'm guessing it will be this year. They will be keeping the UPS XML API so you need to install that module. Jack, you know for sure UPS ending support for this module? I like it much better than the XML version for the same reasons the others here have pointed out. Share this post Link to post Share on other sites
Jack_mcs 1,054 Posted May 3, 2019 12 hours ago, yungi said: still doesn't work. Testing on dev .biz site. I took a look at the file. You commented out the wrong line so it is still using the original code. 18 minutes ago, yungi said: Jack, you know for sure UPS ending support for this module? Yes. I was dealing with UPS tech support on another problem and this is what the tech said when he realized the API the UPS Choice module uses: Quote ...Also, please note that this version of the API is going to be sunsetted soon. While we do not have a hard date as of this writing we strongly advice moving your customers to other versions of the APIs such as XML, Web Services or Json as soon as possible. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
Jack_mcs 1,054 Posted May 3, 2019 12 hours ago, Chadduck said: Is there a cost for the UPS access KEY? No, it is free. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
Chadduck 3 Posted May 3, 2019 Jack Not to sound like an idiot on my part but could you kinda walk me through it? I created the UPS user account but didn't know what, or where to go ,to acquire what I needed. I am sure it is quite easy but when I was attempting to do it - I was a little stressed since 1.8.3 was not working and I needed UPS quotes. Thanks in advance BJ Share this post Link to post Share on other sites
yungi 1 Posted May 3, 2019 3 hours ago, Jack_mcs said: I took a look at the file. You commented out the wrong line so it is still using the original code. You're right.. it's working now. Thanks Share this post Link to post Share on other sites
Jack_mcs 1,054 Posted May 4, 2019 (edited) 6 hours ago, Chadduck said: Not to sound like an idiot on my part but could you kinda walk me through it? I created the UPS user account but didn't know what, or where to go ,to acquire what I needed. You need to get an API access key from here (step 4). That goes into the settings for the UPS XML module. Edited May 4, 2019 by Jack_mcs Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
jrvs 0 Posted May 14, 2019 On 4/20/2019 at 9:38 PM, repete said: Got a fix for this.... Modify /includes/modules/shipping/ups.php changing line 267 from... if ($http->Connect('www.ups.com', 80)) { To.... if ($http->Connect('ssl://www.ups.com', 443)) { It's a miracle! Eternally grateful! Share this post Link to post Share on other sites
jhallsharp 0 Posted December 3, 2019 Hey I did the change as you requested but I get this error after the change? Is there something else I can do or is this not a working solution anymore? Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version in /var/www/vhosts/freysupply.com/httpdocs/store/catalog/includes/classes/http_client.php on line 330 Warning: fsockopen(): Failed to enable crypto in /var/www/vhosts/freysupply.com/httpdocs/store/catalog/includes/classes/http_client.php on line 330 Warning: fsockopen(): unable to connect to ssl://www.ups.com:443 (Unknown error) in /var/www/vhosts/freysupply.com/httpdocs/store/catalog/includes/classes/http_client.php on line 330 Share this post Link to post Share on other sites