Eddie Shipman
asked on
[Magento] UPS, USPS shipping setup messed up
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.
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.
ASKER
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
None of my response logs have anything in them but this:
This was the request:
Had one request, with 1 response file and one respone-body file. Any ideas?
2011-09-23T17:55:14+00:00 DEBUG (7):
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
)
Had one request, with 1 response file and one respone-body file. Any ideas?
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.
You can use the request log to call UPS and talk with them about why you are not getting any data returned.
ASKER
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:
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.
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();
}
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.
Yep, not being able to reach ups would be an issue.
ASKER
gateway was still set for our DMZ so the server could not connect outside our network. This is just our testbed.
ASKER
Works great now, thanks Mike.
For UPS you do not need credentials. For USPS i thought you did need credentials.