Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Someone please help with a Fatal error: Call to undefined function: tep_array_merge() error


Guest

Recommended Posts

Posted

I have just installed the Shipping, Order Processing Module. I have it all installed, including the SQL part. Now, any link that I click on under the Shipping Tab in admin:

 

[Process] _

Orders to Process

Shipping Processing

Manual Entry

_ [Validation] _

Supervisor Admin

Shipper Admin

Payment Admin

Sale Type Admin

Sale Origin Admin

Invoice Admin

Email Admin

Order Status Admin

Templates Admin

_ [Reports] _

Backorders

 

I get the following error:

Fatal error: Call to undefined function: tep_array_merge() in /home/*******/public_html/catalog/admin/spg_template_status_admin.php (or whatever the associated page to the link is) on line ***(whatever line number it gives me.

 

 

I get the same exact error for each link. So I am assuming it has to do with the tep_array_merge() but I don't have a clue how to fix it!

 

Can someone please please please make this thing work for me?

Posted

make sure the function is present in the admin\includes\functions\general.php Should be like this:

  function tep_array_merge($array1, $array2, $array3 = '') {
if ($array3 == '') $array3 = array();
if (function_exists('array_merge')) {
  $array_merged = array_merge($array1, $array2, $array3);
} else {
  while (list($key, $val) = each($array1)) $array_merged[$key] = $val;
  while (list($key, $val) = each($array2)) $array_merged[$key] = $val;
  if (sizeof($array3) > 0) while (list($key, $val) = each($array3)) $array_merged[$key] = $val;
}

return (array) $array_merged;
 }

Posted

You come to my rescue every time! Augh! Thank you so much! :D Works like a charm!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...