Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fatal error... do you know what this might be?


steward dondi

Recommended Posts

Posted

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

Posted

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

  • 4 weeks later...
Posted
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

I have this problem but dont understand which line or lines of code I need to remove. Please can you explain?

 

Thank you

Posted
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 >

Archived

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

×
×
  • Create New...