mreigle Posted January 11, 2006 Posted January 11, 2006 After installing a templated copy of osCommerce I got for free, I'm given a fatal error when I try to access the "All Products" link under the categories menu on my webpage (www.preciousbedding.com). I've installed this contribution several times on clean copies of osC and this is the first time I've had any problems. I've also reinstalled the all products contribution on this server twice and I'm sure I've done it correctly. Here is a copy of the error. Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/precious/public_html/includes/header.php:136) in /home/precious/public_html/includes/boxes/categories.php on line 13 You can see the problem at http://www.preciousbedding.com/all_products.php. If someone could point me in the general direction of the problem, it would be greatly appreciated. I'm still learning PHP, so it's really confusing me. It says that I can't redeclare what I guess is a command to show the categories, but I'm not sure if I need to take out one of the declarations. If I do, I can't find the second one. I've looked everywhere I can think of. Just for kicks, here's a copy of the install procedure for the all products contribution, for those of you who don't have it fresh on your mind: ------------------------------------------------------------------------- Install 1. copy /catalog/all_products.php to your catalog/all_products.php and /catalog/includes/languages/(language)/all_products.php to your /catalog/includes/(language)/all_products.php 2. add the lines in: /catalog/includes/filenames.php /catalog/includes/languages/english.php /catalog/includes/languages/german.php into your files with the same path and name. Attention! Don't replace!!! Add only lines beginning with "define". 3. Place Links to the new page as you want. Look this: <?php echo '<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS) . '">' . ALL_PRODUCTS_LINK . '</a>'; ?> 3.1 Make a link in the categoriesbox: open catalog/includes/boxes/categories.php: find around line 66: $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); change to: $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS) . '" class="headerNavigation">' . BOX_HEADING_CATEGORIES . '</a><br>' ); That should do it!! If you find this contribution useful and be happy, let me know it. When not be in silence. I'm sorry for my bad english. I hope you can it understand. Wish you peace on earth and have a nice time. ----------------------------------------------------------------- Please help! Regards, Matt Reigle
TheMJ Posted January 12, 2006 Posted January 12, 2006 I don't see it. youve got a bunch of messed up images there tho.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.