evoltuionnet Posted May 18, 2004 Posted May 18, 2004 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!
Guest Posted May 18, 2004 Posted May 18, 2004 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
evoltuionnet Posted May 19, 2004 Author Posted May 19, 2004 Hey thanks! il try to add that code.. hope it works... thanks again!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.