heebeha Posted July 16, 2008 Posted July 16, 2008 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
Guest Posted July 16, 2008 Posted July 16, 2008 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
heebeha Posted July 16, 2008 Author Posted July 16, 2008 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);
Jack_mcs Posted July 16, 2008 Posted July 16, 2008 It's most likely because of the template you are using. See this thread. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.