News:

Support the VirtueMart project and become a member

Main Menu

USPS Shipping error - Warning: fsockopen()

Started by iheartvw, May 02, 2008, 21:42:57 PM

Previous topic - Next topic

iheartvw

Warning: fsockopen() [function.fsockopen]: unable to connect to http://Production.ShippingAPIs.com:0 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /home/iheartvw/public_html/administrator/components/com_virtuemart/classes/shipping/usps.php on line 411
We are unable to ship USPS as there was an error,
please select another shipping method.We are unable to ship USPS as the package weight exceeds what your
country allows, please select another shipping method.


I get this error when checking out... Please assist


iheartvw


Chaz

Try the latest version located at this thread:
http://forum.virtuemart.net/index.php?topic=40284.0

Also, if your host requires a proxy server to connect please enter it into the configuration settings.
Chaz Mezan
Park Beach Systems, Inc.

USPS Plugin for Virtuemart 2.0-
http://www.parkbeachsystems.com/products/virtuemart-usps-shipping

iheartvw

well, I installed the new version, and Now i get this error:

Warning: fsockopen() [function.fsockopen]: unable to connect to http://production.shippingapis.com:0 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /home/xxxxxx/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv4.php on line 225

Chaz

iheartvw- It appears you are not using cURL for the USPS service call, but rather the fsockopen post. I did not change anything in v4 with this fsockopen process but it was definitely not working for me either. It doesn't appear to me that it was ever working since it was not parsing the response correctly in any of the versions.

I have made changes to correct this problem and it will be included in the v4.0RC2 release which I will post shortly.
Chaz Mezan
Park Beach Systems, Inc.

USPS Plugin for Virtuemart 2.0-
http://www.parkbeachsystems.com/products/virtuemart-usps-shipping

ajvobara

Chaz,

I've been having the same trouble, and after following your instructions to upgrade to v4.0RC2 I'm getting these two errors still..  any ideas?

Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: No such host is known. in M:\xampp\htdocs\Joomla15\administrator\components\com_virtuemart\classes\shipping\uspsv4.php on line 234

Warning: fsockopen() [function.fsockopen]: unable to connect to testing.shippingapis.com/ShippingAPITest.dll:80 (php_network_getaddresses: getaddrinfo failed: No such host is known. ) in M:\xampp\htdocs\Joomla15\administrator\components\com_virtuemart\classes\shipping\uspsv4.php on line 234

Chaz

Ajvobara, it is recommended that you do not use the USPS testing server. Please request from USPS that your account be moved to their production server and then try it.
Chaz Mezan
Park Beach Systems, Inc.

USPS Plugin for Virtuemart 2.0-
http://www.parkbeachsystems.com/products/virtuemart-usps-shipping

ajvobara

Done that, didn't work..  I gave up & settled for different options.. now trying to figure out PayPal issue..

thanx anyhow..