Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

[Magento] UPS, USPS shipping setup messed up

Posted on 2011-09-22
9
Medium Priority
?
1,100 Views
Last Modified: 2013-11-18
We had a testbed store, had USPS and UPS shipping setup with standard stuff where we didn’t have to enter the credentials to obtain rates.

Well, we had to delete the testbed and clone our production server, we use virtual servers on our hosting environment, and now when we setup UPS and USPS shipping, it says
“This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.”
for both carriers. What did I do wrong here? I don’t remember entering any credentials when I originally setup the testbed.
0
Comment
Question by:EddieShipman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 12

Expert Comment

by:miked2004
ID: 36587098
Check to see if any of the configuration settings got changed. Compare it to your old install.
For UPS you do not need credentials. For USPS i thought you did need credentials.

0
 
LVL 26

Author Comment

by:EddieShipman
ID: 36587599
We can't compare it to the old one because it was deleted. We use virtual servers so when we need to make a copy of our production server, we just delete the old staging server and copy production to it.
0
 
LVL 12

Accepted Solution

by:
miked2004 earned 2000 total points
ID: 36587629
Well, this is a good example of why you should always keep a backup.

IF you want to log you requests to UPS I wrote a quick tutorial on how to do this. It may provide in-site as to why UPS is not returning quotes.
http://www.sharpdotinc.com/mdost/2011/03/29/magento-how-to-log-ups-rate-requests/

0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
LVL 26

Author Comment

by:EddieShipman
ID: 36588856
None of my response logs have anything in them but this:
2011-09-23T17:55:14+00:00 DEBUG (7): 

Open in new window


This was the request:
2011-09-23T17:55:14+00:00 DEBUG (7): Array
(
    [accept_UPS_license_agreement] => yes
    [10_action] => 4
    [13_product] => GNDRES
    [14_origCountry] => US
    [15_origPostal] => 65802
    [origCity] => Springfield
    [19_destPostal] => 78665
    [22_destCountry] => US
    [23_weight] => 1
    [47_rate_chart] => Regular Daily Pickup
    [48_container] => 00
    [49_residential] => 01
    [weight_std] => lbs
)

Open in new window


Had one request, with 1 response file and one respone-body file. Any ideas?
0
 
LVL 12

Expert Comment

by:miked2004
ID: 36588931
So the issue is that you are not getting any data back from ups.

You can use the request log to call UPS and talk with them about why you are not getting any data returned.

0
 
LVL 26

Author Comment

by:EddieShipman
ID: 36589281
There seems to be something else causing it because I changed the $responseBody value in the catch in this code and it returned what I typed:
        try {
            $url = $this->getConfigData('gateway_url');
            if (!$url) {
                $url = $this->_defaultCgiGatewayUrl;
            }
            $client = new Zend_Http_Client();
            $client->setUri($url);
            $client->setConfig(array('maxredirects'=>0, 'timeout'=>30));
            $client->setParameterGet($params);
            $response = $client->request();
            $responseBody = $response->getBody();
        } catch (Exception $e) {
            // $responseBody = '';
            $responseBody = $e->getCode()."\n".$e->getMessage()."\n".$e->getTraceAsString();
        }

Open in new window


So there is an exception. I modified the catch to show what the exception was.

Here is the exception message:
Unable to Connect to tcp://www.ups.com:80. Error #101: Network is unreachable

Getting with my systems admin to find out why.
0
 
LVL 12

Expert Comment

by:miked2004
ID: 36589292
Yep, not being able to reach ups would be an issue.
0
 
LVL 26

Author Comment

by:EddieShipman
ID: 36589485
gateway was still set for our DMZ so the server could not connect outside our network. This is just our testbed.
0
 
LVL 26

Author Closing Comment

by:EddieShipman
ID: 36589520
Works great now, thanks Mike.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The aim of this article is to help you solve the error "Cannot insert the value NULL into column 'ShortDescription', table 'albert_store.dbo.Nop_Product'; column does not allow nulls. UPDATE fails." problem and allow you to continue updating your No…
E-commerce is quite a gambling world, and you should never entrust your business to a lucky chance. In order to outrun your competitors in a race to attract as many customers as possible, you need to have a well thought-out strategy under your belt.…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question