Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to undefined function tep_get_parent_categories()


dansino

Recommended Posts

Hi!

 

try to run Google Base /Froogle, and I got the error message:

 

Fatal error: Call to undefined function tep_get_parent_categories() in /home/public_html/includes/classes/seo.class.php on line 1044

 

then I went to the seo.class.php,

-----------------------------------------------------------------------------------------------------------------

1042 function get_all_category_names($cID, $cName){

1043 $parArray = array(); //get all of the parrents

1044 tep_get_parent_categories($parArray, $cID) ;

 

 

foreach ($parArray as $parentID) {

$sql = "SELECT LOWER(categories_name) as parentName

FROM ".TABLE_CATEGORIES_DESCRIPTION." cd

WHERE categories_id = '".(int)$parentID."' AND cd.language_id = '".(int)$this->languages_id."'

LIMIT 1";

$result = $this->DB->FetchArray( $this->DB->Query( $sql ) );

$cName = $result['parentName'] . '-' . $cName; //build the new string

}

return (str_replace(" ", "-", $cName));

}

----------------------------------------------------------------------------------------------

 

Any ideal?

 

Thanks!

 

Dansino

Link to comment
Share on other sites

Fatal error: Call to undefined function tep_get_parent_categories() in /home/public_html/includes/classes/seo.class.php on line 1044

Strange, this function is available in a osC 2.2 installation in /catalog/includes/functions/general.php

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...