Author Topic: Fedex (fedexdc.php) fputs() expects parameter 3 to be long  (Read 5619 times)

hall0ween138

  • Beginner
  • *
  • Posts: 3
Fedex (fedexdc.php) fputs() expects parameter 3 to be long
« 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

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: Fedex (fedexdc.php) fputs() expects parameter 3 to be long
« Reply #1 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" );
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)