Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

For some reason about two days ago the 2 errors below popped up on the store. Now osCommerce doesn't connect to UPS and grab the shipping costs.

 

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /var/www/medicalsuppliesplus/web/includes/classes/http_client.php on line 330

 

 

Warning: fsockopen(): unable to connect to www.ups.com:80 in /var/www/medicalsuppliesplus/web/includes/classes/http_client.php on line 330

 

Does anybody have any idea what this problem may be? Everything was working fine for about 2 months before this occured. I am thinking either UPS changed something or something got changed on our server.

 

Thanks for any help in advance.

Posted

have you made any contribution additions? it also appears you cant go out from your server to talk to another server

Posted

Yes I did add some contributions.

 

But the system hasn't been touched in about 2 months and everything has been working fine.

Posted

We fixed the problem

 

it seems that php4.3.4 has a problem with gethostbyname and bind compensates for this problem.

 

We recently switched to dnscache for our dns servers for performance but it does not compensate for the bug in php4.3.4... So to fix the problem we put UPS's ip in the hosts file on our server.

Posted

I've been having problems with UPS and USPS. I changed UPS's host name in UPS.PHP to an IP address and it appears to work. Thanks for the info!

 

Hopefully someone will address gethostbyname soon.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...