Guest Posted February 7, 2004 Share Posted February 7, 2004 I am getting the error Fatal error: Call to undefined function: array_map() in /usr/local/httpd/htdocs/catalog/admin/includes/functions/general.php on line 1293 whenever I click on the folder icon in the Categories/Products section of the admin section. I am running Apache/ php on a SuSE 7.2 version. PHP/4.0.4pl1 can anyone advise me where this function should be and how to make sure i can add stuff to the database Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2004 Share Posted February 7, 2004 That particular function is defined in catalog/includes/functions/compatibility.php Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2004 Share Posted February 7, 2004 I think the problem is that array_map is a php function and only exists in php versions >= 4.0.6 Link to comment Share on other sites More sharing options...
Erdpeer Posted February 20, 2004 Share Posted February 20, 2004 Hi :) We are lucky, it isw only a simple error: Error in admin/includes/functions/compatibility.php: Simple copy this before ?> Then it will works fine :) 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); } } } All the best Peer Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.