Guest Posted April 28, 2004 Share Posted April 28, 2004 PLEASE ASSIST. I have seen this same question in the support, but no one has really replied. It is like 3 pages of the same question, but no answers. Thanks in advance. Warning: call_user_func(tep_get_order_status_name): First argument is expected to be a valid callback in /home/jftechn/public_html/catalog/admin/includes/functions/general.php on line 1232 Then when I click update I get the following error Fatal error: Call to undefined function: tep_cfg_pull_down_order_statuses() in /home/jftechn/public_html/catalog/admin/modules.php(204) : eval()'d code on line 1 What is going wrong here? :unsure: Quote Link to comment Share on other sites More sharing options...
SubFuze Posted May 19, 2004 Share Posted May 19, 2004 (edited) found the answer here: http://www.oscommerce.com/forums/index.php?amp...ndpost&p=201741 Add the following code to catalog\admin\includes\functions\general.php //added by JSS from OSC_22_M1 general.php function tep_cfg_pull_down_order_statuses($order_status_id, $key = '') { global $languages_id; $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value'); $statuses_array = array(array('id' => '0', 'text' => TEXT_DEFAULT)); $statuses_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "' order by orders_status_name"); while ($statuses = tep_db_fetch_array($statuses_query)) { $statuses_array[] = array('id' => $statuses['orders_status_id'], 'text' => $statuses['orders_status_name']); } return tep_draw_pull_down_menu($name, $statuses_array, $order_status_id); } //added by JSS from OSC_22_M1 general.php function tep_get_order_status_name($order_status_id, $language_id = '') { global $languages_id; if ($order_status_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select orders_status_name from " . TABLE_ORDERS_STATUS . " where orders_status_id = '" . $order_status_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['orders_status_name']; } hope this helps if you haven't solved it already... Edited May 19, 2004 by SubFuze 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.