Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with FedEx Module


Guest

Recommended Posts

I recently moved to a new host, and have had nothing but problems with my store ever since. Currently, I have the vendors module running, paypal web payments standard, which all work fine. I can successfully purchase an item from my dropship vendor that uses flat rate shipping. When i purchase an item from MyStore vendor, which uses FedEx quotes, I get this error after clicking continue on the shipping step.

 

Warning: Missing argument 2 for fedex1::_setService(), called in /home2/nicelook/public_html/rchelizone/catalog/includes/modules/vendors_shipping/fedex1.php on line 137 and defined in /home2/nicelook/public_html/rchelizone/catalog/includes/modules/vendors_shipping/fedex1.php on line 309

 

Warning: Cannot modify header information - headers already sent by (output started at /home2/nicelook/public_html/rchelizone/catalog/includes/modules/vendors_shipping/fedex1.php:309) in /home2/nicelook/public_html/rchelizone/catalog/includes/functions/general.php on line 33

 

Please help me get back online!!!

 

Thank you.

Link to comment
Share on other sites

  • 2 weeks later...
I recently moved to a new host, and have had nothing but problems with my store ever since. Currently, I have the vendors module running, paypal web payments standard, which all work fine. I can successfully purchase an item from my dropship vendor that uses flat rate shipping. When i purchase an item from MyStore vendor, which uses FedEx quotes, I get this error after clicking continue on the shipping step.

 

Warning: Missing argument 2 for fedex1::_setService(), called in /home2/nicelook/public_html/rchelizone/catalog/includes/modules/vendors_shipping/fedex1.php on line 137 and defined in /home2/nicelook/public_html/rchelizone/catalog/includes/modules/vendors_shipping/fedex1.php on line 309

 

Warning: Cannot modify header information - headers already sent by (output started at /home2/nicelook/public_html/rchelizone/catalog/includes/modules/vendors_shipping/fedex1.php:309) in /home2/nicelook/public_html/rchelizone/catalog/includes/functions/general.php on line 33

 

Please help me get back online!!!

 

Thank you.

 

If this is still dogging you:

 

1) The host should in their php.ini turn off display errors, and just log them - especially warnings and notices.

or

2) (I don't have the code so I can only make suggestions for fix) on line 309 in the function declaration see what the 2nd argument is for, and a) assign a default value for it, or B) go to line 137 and add a 2nd parameter to the function call.

Link to comment
Share on other sites

  • 2 months later...

you need to balance the function call.

 

edit file: includes\modules\vendors_shipping\fedex1.php

 

find:

if (tep_not_null($method)) {
       $this->_setService($method);
     }

 

change to:

 

if (tep_not_null($method)) {
       $this->_setService($method, $vendors_id);
     }

 

 

You'll notice later in the file, there is a function called: function _setService($service, $vendors_id)

This requires both the service and and vendors_id to be passed.

 

Thanks!

nerdDesignGroup.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...