Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can anyone help with this USPS error


bibleman

Recommended Posts

Posted

I have loaded the osCommerce software on my site and I love it!

 

I have made a few mods and they have worked great. (Don't know PHP but am learning)

 

The UPS and USPS modules have all worked great for the two days I have had it om my site.... UNTIL.....

 

Last night for what seems to be no reason at all the USPS does not work any longer.

 

There is no listing for the USPS information on the checkout_shipping.php page it says this:

 

United States Postal Service

An error occurred with the USPS shipping calculations.

If you prefer to use USPS as your shipping method, please contact the store owner.

 

At the top of the page it says this:

 

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known (is your IPV6 configuration correct? If this error happens all the time, try reconfiguring PHP using --disable-ipv6 option to configure) in /home/ministry/public_html/store/includes/classes/http_client.php on line 330

 

Warning: fsockopen(): unable to connect to production.shippingapi.com:80 in /home/ministry/public_html/store/includes/classes/http_client.php on line 330

 

OK,

 

  • 1) I have the sit on production.

2) My USPS user id and passwords are correct.

3) I have called the USPS and got them to turn me on.

4) I have deleted and reinstalled a fresh copy of the usps.php

5) I have deleted and reinstalled a fresh copy of http_client.php

 

I still have the error and don't know what to do!

 

Any suggestions would be appreciated.

I'm having a great Day - hope you are too!

 

Leon

Posted

That sounds like the USPS server isn't responding or your script isn't receiving the response. You didn't change anything?

 

I'd say write a simple script using fsockopen() in a test file and see if you can get a response from their server. If not - call them. If you do, you'll need to do a bit of digging to determine where the error is. You'll need to locate the section of the cart that calls the fsockopen() function in the USPS module. I'd consider copying that code to the test file and hard coding variables to actual values as a next level test. If that works then you're going to really need to do a bit of digging.

 

Mind you, I'm still wet behind the ears with osC so perhaps a more experienced developer will have a simpler answer.

Apathy is a dominant gene - mutate.

  • 3 months later...
Posted

USPS Stuff seems to be a chronic problem. I could not get USPS to work. I read and read and decided to start over. I got the 2.6 version of the USPS Methods contribution here:

http://www.oscommerce.com/community/contributions,487/page,4

 

I even started fresh with a new USPS username and ID and got them to switch it to production.

 

With these two things, it still does not work. UPS works like a champ, but I really need USPS as all my shipping is priority mail. Any tips for a guy lost with USPS? If you can help, please post here.

 

I've been fighting USPS for two weeks now.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...