Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP: Fatal error: Cannot redeclare tep_show_category()


heebeha

Recommended Posts

I am getting the following error after more_pics_6_v1.2c for v2.2

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/tatroma/public_html/includes/header.php:175) in /home/tatroma/public_html/includes/boxes/categories.php on line 59

 

Any help would be greatly appreciated

 

You can see the error here:

http://tatromachine.com/product_info.php?c...;products_id=46

 

Jeff Dean

Link to comment
Share on other sites

Can you send the code in this file:

 

/home/tatroma/public_html/includes/boxes/categories.php on line 59

 

 

15 lines before and after line 59

Link to comment
Share on other sites

Here you go: I notes where live 59 is below. Thanks

 

if ($tree[$counter]['next_id'] != false) {

tep_show_category($tree[$counter]['next_id']);

}

} <<<<<<This is Line 59

?>

<!-- categories //-->

<tr>

<td>

<?php

 

 

 

$categories_string .= '</a>';

 

if (SHOW_COUNTS == 'true') {

$products_in_category = tep_count_products_in_category($counter);

if ($products_in_category > 0) {

$categories_string .= ' (' . $products_in_category . ')';

}

}

 

$categories_string .= '<br>';

 

if ($tree[$counter]['next_id'] != false) {

tep_show_category($tree[$counter]['next_id']);

}

}

?>

<!-- categories //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);

 

new infoBoxHeading($info_box_contents, true, false);

 

$categories_string = '';

$tree = array();

 

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");

while ($categories = tep_db_fetch_array($categories_query)) {

$tree[$categories['categories_id']] = array('name' => $categories['categories_name'],

'parent' => $categories['parent_id'],

'level' => 0,

'path' => $categories['categories_id'],

'next_id' => false);

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...