johnboland Posted January 20, 2009 Share Posted January 20, 2009 Hi All, hope someone can help, Fatal error: Cannot redeclare tep_show_category() (previously declared in /homepages/5/d147190234/htdocs/catalog/includes/boxes/categories.php:13) in /homepages/5/d147190234/htdocs/catalog/includes/boxes/categories.php on line 13 is the message I keep getting when i try to write a review as a logged in customer. I have looked at the categories and cant see where I am going wrong with the duplicate. Thanks in advance John Link to comment Share on other sites More sharing options...
ydhcxh Posted January 20, 2009 Share Posted January 20, 2009 The code : 13 function tep_show_category($counter) { 14 global $tree, $categories_string, $cPath_array; 15 16 for ($i=0; $i<$tree[$counter]['level']; $i++) { 17 $categories_string .= " "; 18 } 19 20 $categories_string .= '<a href="'; 21 22 if ($tree[$counter]['parent'] == 0) { ...... The fatal error is meaning ,posible you repeat load the categories.php file,or other file has declared the fuction tep_show_category Link to comment Share on other sites More sharing options...
FIMBLE Posted January 20, 2009 Share Posted January 20, 2009 have you any category calls in your header? Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
johnboland Posted January 20, 2009 Author Share Posted January 20, 2009 The code :13 function tep_show_category($counter) { 14 global $tree, $categories_string, $cPath_array; 15 16 for ($i=0; $i<$tree[$counter]['level']; $i++) { 17 $categories_string .= " "; 18 } 19 20 $categories_string .= '<a href="'; 21 22 if ($tree[$counter]['parent'] == 0) { ...... The fatal error is meaning ,posible you repeat load the categories.php file,or other file has declared the fuction tep_show_category Thanks, was duplicated categories but I had checked lots of times, but must be working too hard. John Link to comment Share on other sites More sharing options...
johnboland Posted January 20, 2009 Author Share Posted January 20, 2009 have you any category calls in your header? Thanks for reply soretd by eventually spotting duplicate...dooh! John Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.