Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Can't view the product list in Admin


Recommended Posts

Need help for the general.php


I can't view the product in the admin - catalog - categories/products

able to see the categories but the product under the caterories

able to add new product and new categories


Fatel error: call to undefined functionL array_map() in/home/www/xxx/catalog/admin/includes/functions/general.php on line 1293


// Parse and secure the cPath parameter values
 function tep_parse_category_path($cPath) {
// make sure the category IDs are integers
   $cPath_array = array_map('tep_string_to_int', explode('_', $cPath));

// make sure no duplicate category IDs exist which could lock the server in a loop
   $tmp_array = array();
   $n = sizeof($cPath_array);
   for ($i=0; $i<$n; $i++) {
     if (!in_array($cPath_array[$i], $tmp_array)) {
       $tmp_array[] = $cPath_array[$i];

   return $tmp_array;

Link to comment
Share on other sites

Add this to admin/includes/finctions/compatibility.php:


  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

Thanks! johnson.


After the code add on the compatibility.php the error is got, however, I just can't view the subcategories and the product list.


No error message. only stay on the same page

even I use the right-column pull down menu scoll down to the subcategories still no show.


then double click

catalog/admin/categories.php?cPath=1 stay on same page no subcategories

go pull down menu --> CDROM Driver

catalog/admin/categories.php?cPath=17 stay on same page no subcategories and product list.

Link to comment
Share on other sites

:angry: Still can't figure why in the Admin->catalog->category/product click on the main category no show the sub-category and the products


Please anyone!!!

Link to comment
Share on other sites


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

  • Create New...