berryt Posted May 20, 2004 Posted May 20, 2004 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. Quote
Guest Posted May 20, 2004 Posted May 20, 2004 have you made any contribution additions? it also appears you cant go out from your server to talk to another server Quote
berryt Posted May 20, 2004 Author Posted May 20, 2004 Yes I did add some contributions. But the system hasn't been touched in about 2 months and everything has been working fine. Quote
berryt Posted May 20, 2004 Author Posted May 20, 2004 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. Quote
Lavarock Posted May 20, 2004 Posted May 20, 2004 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. Quote
Recommended Posts
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.