VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Shipping VM 1.1 => FedEx VM 1 => Topic started by: g0d0fh3ll on November 26, 2008, 09:54:22 AM

Title: help with VM 1.1.2 and J 1.5.8
Post by: g0d0fh3ll on November 26, 2008, 09:54:22 AM
Hi everyone,

Im trying to configure Fedex with no success.
I had registred in Fedex developer and recieved test Account number and Meter:

Shipping Module Configuration: fedex.php
FedEx Account Number  :xxxxxx     
FedEx Meter Number    :xxxxxx   
FedEx Server Address :https://gatewaybeta.fedex.com/GatewayDC

All looks right but when i try to checkout get these errors:

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/virtual/xxxxxx/htdocs/administrator/components/com_virtuemart/classes/shipping/fedex/fedexdc.php on line 430

Warning: fsockopen(): unable to connect to https://gatewaybeta.fedex.com/GatewayDC:80 in /var/www/virtual/xxxxxx/htdocs/administrator/components/com_virtuemart/classes/shipping/fedex/fedexdc.php on line 430

Error: unable to process services_rate

My host is using PHP4.

Any sugestions?

Thanks in advance
Title: Re: help with VM 1.1.2 and J 1.5.8
Post by: barjas on January 13, 2009, 19:00:19 PM
same error happening here with me !!!! did u solve it ?
Title: Re: help with VM 1.1.2 and J 1.5.8
Post by: websnare on October 22, 2009, 19:15:08 PM
I figured out what it is.. at least it worked for me..
THE GOOD NEWS IS.. YOUR REALLY REALLY CLOSE..

BASICALLY YOU NEED TO FIND
administrator/components/com_virtuemart/classes/shipping/fedex.cfg.php

AND CHANGE THE FILE PERMISSIONS SO IT IS WRITABLE -- JUST SET IT 777 FOR A TEST.. THEN ADJUST IT AFTER YOU HAVE IT WORKING TO LOWEST VALUE THAT WORKS..

THE ERROR IS CAUSED BY THE LACK OF ABLITY TO WRITE TO THE FEDEX CFG FILE.. THE CONFIGURATION FILE FOR FEDEX..
I also noticed while overcoming the pitfalls of the FedEx module that the Meter Number is assigned automatically (and this might be why it is trying to write to the cfg file.. to update your meter number..

in review .. find the fedex.cfg.php and change its file permissons to allow for write ..

hope that helps! :)