Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

fatal error


Recommended Posts

Can anybody tell me why I get this error message when I click on my categories button and what I have to do to fix it.

Fatal error: Call to undefined function: tep_parse_category_path() in /home/jdsele19/public_html/oscommerce/includes/application_top.php on line 419


Link to comment
Share on other sites

the function may be missing from general.php or you have removed the call to general.php from application_top.php - this is the function:


// 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


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

  • Create New...