Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning & Fatal Error after Linkpoint module inst


Guest

Recommended Posts

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:

Link to comment
Share on other sites

  • 3 weeks later...

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 by SubFuze
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.
Note: Your post will require moderator approval before it will be visible.

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