Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Access product info from admin/catalog/categories&


fiat707

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

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);
     }
   }
 }

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...