Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Copy products on a category folder on admin


evoltuionnet

Recommended Posts

Posted

i receive a fatal error everytime i move or copy products to its category in admin,

 

Fatal error: Call to undefined function: array_map() in C:\apache\htdocs\catalog\admin\includes\functions\general.php on line 1293

 

Pls HElp!

Posted

add this to admin/includes/functions/compatibility.php:

 

 ?if (!function_exists('array_map')) {
? ?function array_map($callback, $array) {
? ? ?if (is_array($array)) {
? ? ? ?$_new_array = array();
? ? ? ?reset($array);
? ? ? ?while (list($key, $value) = each($array)) {
? ? ? ? ?$_new_array[$key] = array_map($callback, $array[$key]);
? ? ? ?}
? ? ? ?return $_new_array;
? ? ?} else {
? ? ? ?return $callback($array);
? ? ?}
? ?}
?}

 

Add it just before any of the other functions.

 

It really is time your version of PHP was upgraded :)

 

Matti

Archived

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

×
×
  • Create New...