Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sudden problems with UPS and USPS shipping modules


Muze

Recommended Posts

When I try to edit the UPS (XML) mod I get this error

 

Fatal error: Call to undefined function: tep_cfg_select_multioption() in /home/altmode/public_html/catalog/admin/modules.php(212) : eval()'d code on line 1

 

Whenever an order goes through, UPS option shows this

 

United Parcel Service (XML)

Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway :

If you prefer to use ups as your shipping method, please contact via Email.

 

I can remove it, but we want people to at least email us if they want UPS.

 

USPS WAS working, but I couldn't edit it in admin, got the same error as above:

Fatal error: Call to undefined function: tep_cfg_select_multioption() in /home/altmode/public_html/catalog/admin/modules.php(212) : eval()'d code on line 1

 

I removed it and reinstalled it but I still can't edit so now that doesn't work either! (username

and password missing once removed and reinstalled, and can't edit it so...)

 

Only FedEx works for us still. PLEASE HELP! I didn't alter any of these files.

Edited by Muze
Link to comment
Share on other sites

When I try to edit the UPS (XML) mod I get this error

 

Fatal error: Call to undefined function: tep_cfg_select_multioption() in /home/altmode/public_html/catalog/admin/modules.php(212) : eval()'d code on line 1

 

Whenever an order goes through, UPS option shows this

 

United Parcel Service (XML)

Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway :

If you prefer to use ups as your shipping method, please contact via Email.

 

I can remove it, but we want people to at least email us if they want UPS.

 

USPS WAS working, but I couldn't edit it in admin, got the same error as above:

Fatal error: Call to undefined function: tep_cfg_select_multioption() in /home/altmode/public_html/catalog/admin/modules.php(212) : eval()'d code on line 1

 

I removed it and reinstalled it but I still can't edit so now that doesn't work either! (username

and password missing once removed and reinstalled, and can't edit it so...)

 

Only FedEx works for us still. PLEASE HELP! I didn't alter any of these files.

Perhaps you didn't change the files mentioned in your post, but the function tep_cfg_select_multioption should have been added to admin/includes/functions/general.php (step 4, readme.txt, upsxml contribution).

 

However, I doubt that has anything to do with your "unknown error". If it worked before probably your host changed something regarding cURL.

 

In the catalog/includes/modules/shipping/upsxml.php you will find around line 90 instructions for logging the requests to and replies from the UPS servers. Use a full path like mentioned a few lines further. The log should be more indicative of the exact error. For cURL error 60 search the file itself for instructions how to fix that (probably the most common error).

 

I think there were changes for USPS, new names or something. Check the forums for that I would like to suggest.

Link to comment
Share on other sites

  • 2 weeks later...
Perhaps you didn't change the files mentioned in your post, but the function tep_cfg_select_multioption should have been added to admin/includes/functions/general.php (step 4, readme.txt, upsxml contribution).

 

However, I doubt that has anything to do with your "unknown error". If it worked before probably your host changed something regarding cURL.

 

In the catalog/includes/modules/shipping/upsxml.php you will find around line 90 instructions for logging the requests to and replies from the UPS servers. Use a full path like mentioned a few lines further. The log should be more indicative of the exact error. For cURL error 60 search the file itself for instructions how to fix that (probably the most common error).

 

I think there were changes for USPS, new names or something. Check the forums for that I would like to suggest.

 

Thanks that solved my UPS problem it would seem. When I said I didn't alter any files, it was that it was working before, so I hadn't altered any files since I installed everything. Not sure how that step 4 wasn't completed, perhaps because it says that if USPS is already installed, skip this step. Then USPS server made some changes that probably affected both these mods. And in fact USPS is still not working...

 

But thanks again.

Link to comment
Share on other sites

Hi,

I'm a new osCommerce user and am looking for the UPS module. According to the online documentation it should appear in the list along with zone rates, flat rates and USPS rates, but I am not being given that option. Is there something I need to upload in order for it to show up in my list?

Thanks in advance for the help.

Anne

 

 

When I try to edit the UPS (XML) mod I get this error

 

Fatal error: Call to undefined function: tep_cfg_select_multioption() in /home/altmode/public_html/catalog/admin/modules.php(212) : eval()'d code on line 1

 

Whenever an order goes through, UPS option shows this

 

United Parcel Service (XML)

Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway :

If you prefer to use ups as your shipping method, please contact via Email.

 

I can remove it, but we want people to at least email us if they want UPS.

 

USPS WAS working, but I couldn't edit it in admin, got the same error as above:

Fatal error: Call to undefined function: tep_cfg_select_multioption() in /home/altmode/public_html/catalog/admin/modules.php(212) : eval()'d code on line 1

 

I removed it and reinstalled it but I still can't edit so now that doesn't work either! (username

and password missing once removed and reinstalled, and can't edit it so...)

 

Only FedEx works for us still. PLEASE HELP! I didn't alter any of these files.

Link to comment
Share on other sites

  • 5 years later...

// USPS Methods 3.0

// Alias function for Store configuration values in the Administration Tool

function tep_cfg_select_multioption($select_array, $key_value, $key = '') {

for ($i=0; $i<sizeof($select_array); $i++) {

$name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value');

$string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"';

$key_values = explode( ", ", $key_value);

if ( in_array($select_array[$i], $key_values) ) $string .= ' CHECKED';

$string .= '> ' . $select_array[$i];

}

$string .= '<input type="hidden" name="' . $name . '" value="--none--">';

return $string;

}

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...