Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

newbie /admin problems


TheMagicOne

Recommended Posts

I keep getting this error when i try to go to the sub categories and can not figure out why? could someone help

 

Fatal error: Call to undefined function: array_map() in C:apachehtdocscatalogadminincludesfunctionsgeneral.php on line 1293

It's all in the Mind!

Link to comment
Share on other sites

Paste the following into your 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...