Muze Posted May 16, 2007 Share Posted May 16, 2007 (edited) 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 May 16, 2007 by Muze Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted May 16, 2007 Share Posted May 16, 2007 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. Quote Link to comment Share on other sites More sharing options...
Muze Posted May 30, 2007 Author Share Posted May 30, 2007 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. Quote Link to comment Share on other sites More sharing options...
ACampbell5 Posted May 31, 2007 Share Posted May 31, 2007 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. Quote Link to comment Share on other sites More sharing options...
sunrise99 Posted April 1, 2013 Share Posted April 1, 2013 // 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; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.