VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Shipping VM 1.1 => FedEx VM 1 => Topic started by: hall0ween138 on December 18, 2010, 23:58:32 pm

Title: Fedex (fedexdc.php) fputs() expects parameter 3 to be long
Post by: hall0ween138 on December 18, 2010, 23:58:32 pm
Warning: fputs() expects parameter 3 to be long, string given in D:\xampp\xampp\htdocs\shaverkeenkutter\administrator\components\com_virtuemart\classes\shipping\fedex\fedexdc.php on line 442

This is line 442 from fedexdc.php


fputs($fp, 'User-Agent', $this->NAME .'-'. $this->VERSION . ' class ( http://www.vermonster.com )'."\r\n" );

Any ideas? If I should provide any further information please reply and I will post it right away. Any info or help is kindly appreciated.

Best Regards,
Russ
Title: Re: Fedex (fedexdc.php) fputs() expects parameter 3 to be long
Post by: lowmips on December 19, 2010, 23:54:27 pm
Looks like someone put a comma instead of a period to concatenate the strings:

Code: [Select]
fputs($fp, 'User-Agent'. $this->NAME .'-'. $this->VERSION . ' class ( http://www.vermonster.com  )'."\r\n" );