Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fatal error


jayd115

Recommended Posts

Posted

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

THANKS,

Posted

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;

 }

Posted

I dont know how that code got removed but I put the code in that you sent me and it works like should now. THANK YOU VERY MUCH,

Archived

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

×
×
  • Create New...