steward dondi Posted May 12, 2008 Posted May 12, 2008 On my site: www.bobostinytreasures.com I installd the pwa contribution. When I go to checkout I get this error: Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/content/b/o/b/bobostinytreas/html/includes/header.php:212) in /home/content/b/o/b/bobostinytreas/html/includes/boxes/categories.php on line 13 I looked at the file "Categories.php and this is what it says...... function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; any idea what I need to change? thanks steward dondi
FIMBLE Posted May 13, 2008 Posted May 13, 2008 you can only have the categories box appear once on any page, if you try to do this more than once you get that error, you need to remove one of the boxes Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
musicmaestro Posted June 7, 2008 Posted June 7, 2008 you can only have the categories box appear once on any page, if you try to do this more than once you get that error, you need to remove one of the boxesNic I have this problem but dont understand which line or lines of code I need to remove. Please can you explain? Thank you
dmnalven Posted June 7, 2008 Posted June 7, 2008 Have either of you tried searching, then asking any unanswered questions at the contribution support thread? For ALL problems, please review this link first -> osCommerce Knowledge Base
germ Posted June 8, 2008 Posted June 8, 2008 I have this problem but dont understand which line or lines of code I need to remove. Please can you explain? I'd start by making a backup of your header.php Then remove the code for the function tep_show_category() from it. I can't for the life of me fathom why you put in in there in the first place.... :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.