Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Access product info from admin/catalog/categories&


Recommended Posts

Hi, When I tried to access/edit product information from admin/catalog/categories&products by clicking one of the category folders, I got an error message: "Fatal error: Call to undefined function: array_map() in includes/functions/general.php on line 1293."


I clicked the second category folder and got the same error message. (I know there are definitely some subcategories and products in those categories.) I have just installed the osc and haven't edited or changed much of the files. How is the said function undefined as just after a new installation? If it is really undefined, how do I set to correctly define it so I can access/edit subcategories/products from admin? Thanks for prompt help.

Link to comment
Share on other sites

Try this, it worked for me!


For the admin

functions to all work correctly this bit needs to be pasted into


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

Link to comment
Share on other sites


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

  • Create New...