Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error - Fatal error: Call to undefined function:


Guest

Recommended Posts

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

  • 2 weeks later...

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

Archived

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

×
×
  • Create New...