jayd115 Posted September 4, 2003 Posted September 4, 2003 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,
Guest Posted September 4, 2003 Posted September 4, 2003 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; }
jayd115 Posted September 4, 2003 Author Posted September 4, 2003 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,
Recommended Posts
Archived
This topic is now archived and is closed to further replies.