Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with line in categories.php


Guest

Recommended Posts

Posted

I was attempting to configure Google Checkout. Once the setup was complete I started getting the following error. I restored all original files that I backed up prior to making any changes but I'm still having issues. In fact, this file (categories.php) was not altered. My site give the following error on the home page:

 

Fatal error: Call to undefined function: tep_has_category_subcategories() in /home/myusername/public_html/catalog/includes/boxes/categories.php on line 54

 

Below is the code from categories.php beginning with line 53

 

// display category name

if (tep_has_category_subcategories($counter) || $tree[$counter]['level'] == 0) {

if ( ($cPath_array) && (@in_array($counter, $cPath_array)) ) {

$categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_down.gif', '', '9', '9') . "</span>";

} else {

$categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_right.gif', '', '9', '9') . "</span>";

}

} else {

$categories_string .= '<span class="catwithnosubs">' .tep_image(DIR_WS_IMAGES . 'categories/arrow_bullet.gif', 'nokta', '9', '9') . "</span>";

}

 

Any help is greatly appreciated as my site is currently down.

Posted
check includes/functions/general.php for that function

 

 

Thanks, that was the issue.

 

Now another from my shopping cart:

 

Fatal error: Cannot redeclare gc_compare() (previously declared in /home/meadowbr/public_html/catalog/includes/functions/general.php:762) in /home/meadowbr/public_html/catalog/googlecheckout/gcheckout.php on line 63

Archived

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

×
×
  • Create New...