Author Topic: USPS Shipping error - Warning: fsockopen()  (Read 14163 times)

iheartvw

  • Beginner
  • *
  • Posts: 33
USPS Shipping error - Warning: fsockopen()
« on: May 02, 2008, 21:42:57 pm »
Code: [Select]
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

  • Beginner
  • *
  • Posts: 33
Re: USPS Shipping error - Warning: fsockopen()
« Reply #2 on: May 15, 2008, 04:52:03 am »
My weight package is 1lb

Chaz

  • Jr. Member
  • **
  • Posts: 68
    • USPS Plugin for Virtuemart 2.0
  • VirtueMart Version: 2.0
Re: USPS Shipping error - Warning: fsockopen()
« Reply #3 on: May 15, 2008, 14:00:08 pm »
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

  • Beginner
  • *
  • Posts: 33
Re: USPS Shipping error - Warning: fsockopen()
« Reply #4 on: May 17, 2008, 04:52:32 am »
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

  • Jr. Member
  • **
  • Posts: 68
    • USPS Plugin for Virtuemart 2.0
  • VirtueMart Version: 2.0
Re: USPS Shipping error - Warning: fsockopen()
« Reply #5 on: May 17, 2008, 06:21:41 am »
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

  • Beginner
  • *
  • Posts: 4
Re: USPS Shipping error - Warning: fsockopen()
« Reply #6 on: April 16, 2009, 04:12:02 am »
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

  • Jr. Member
  • **
  • Posts: 68
    • USPS Plugin for Virtuemart 2.0
  • VirtueMart Version: 2.0
Re: USPS Shipping error - Warning: fsockopen()
« Reply #7 on: April 16, 2009, 14:38:32 pm »
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

  • Beginner
  • *
  • Posts: 4
Re: USPS Shipping error - Warning: fsockopen()
« Reply #8 on: April 27, 2009, 03:31:57 am »
Done that, didn't work..  I gave up & settled for different options.. now trying to figure out PayPal issue..

thanx anyhow..