NO Stress Posted June 3, 2008 Share Posted June 3, 2008 I have been trying to update my USPS shipping module with 4.1.4 Now I get all kinds of errors. The first one I got when I went to install and set up under the shipping module when I went to "Edit" I received: Fatal error: Call to undefined function tep_cfg_select_multioption() in /home/nostress/public_html/osc/admin/modules.php(212) : eval()'d code on line 1 Then I tried to go to "/home/nostress/public_html/osc/admin/modules.php(" I got: Warning: file(/home/nostress/public_html/osc//modules.php) [function.file]: failed to open stream: No such file or directory in /home/nostress/public_html/osc/admin/file_manager.php on line 147 I don't know what to do from here. Can anyone help? Quote Link to comment Share on other sites More sharing options...
NO Stress Posted June 3, 2008 Author Share Posted June 3, 2008 I have been trying to update my USPS shipping module with 4.1.4 Now I get all kinds of errors. The first one I got when I went to install and set up under the shipping module when I went to "Edit" I received: Fatal error: Call to undefined function tep_cfg_select_multioption() in /home/nostress/public_html/osc/admin/modules.php(212) : eval()'d code on line 1 Then I tried to go to "/home/nostress/public_html/osc/admin/modules.php(" I got: Warning: file(/home/nostress/public_html/osc//modules.php) [function.file]: failed to open stream: No such file or directory in /home/nostress/public_html/osc/admin/file_manager.php on line 147 I don't know what to do from here. Can anyone help? I fixed it, sort of, I went through the full install instrections, instead of just doing the suggested "update". I say sort of because the "Express" selection in the shipping module comes up "Express shipping flat rate". Oh well I don't need Express anyway, unless someone has a fix for it. Quote Link to comment Share on other sites More sharing options...
everbme Posted June 5, 2008 Share Posted June 5, 2008 i have similar problem like yours before, then i go check and follow the instruction, and use beyond compare to compare the files, and find if (tep_not_null($action)) { switch ($action) { case 'save': while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { *********************************************** INSERT THE FOLLOWING CODE AFTER THE ABOVE LINE: *********************************************** if( is_array( $value ) ){ $value = implode( ", ", $value); $value = ereg_replace (", --none--", "", $value); } and i replaced. and also did this Find This code somewhere around line 767: ***************************************** //// // Alias function for module configuration keys function tep_mod_select_option($select_array, $key_name, $key_value) { reset($select_array); while (list($key, $value) = each($select_array)) { if (is_int($key)) $key = $value; $string .= '<br><input type="radio" name="configuration[' . $key_name . ']" value="' . $key . '"'; if ($key_value == $key) $string .= ' CHECKED'; $string .= '> ' . $value; } return $string; } *********************************************** INSERT THE FOLLOWING CODE AFTER THE ABOVE LINE: *********************************************** // 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; } **************************** the error message went away and i able to put in setting and my id. but now when i try test it with a real order i get error message from calculation, and say contact seller. at least i got little bit closer to get it working. 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.
Note: Your post will require moderator approval before it will be visible.