Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot redeclare tep_show_category()


Guest

Recommended Posts

After installing Separate Price 415, I am getting an error viewing index.php. I followed the SPPC directions to a tee, and had no errors during installation.

 

The error appears in the product listing area, everything else works correctly.

 

The error is:

 

 

Fatal error: Cannot redeclare tep_show_category()

(previously declared in c:\program files\easyphp1-8\www\includes\header.php:169)

in c:\program files\easyphp1-8\www\includes\boxes\categories.php on line 13

 

If I remove the tep_show_category() function from header.php, the index.php seems to to lose its formatting.

 

Any tips or comments appreciated -

 

Rob

<_<

Link to comment
Share on other sites

After installing Separate Price 415, I am getting an error viewing index.php. I followed the SPPC directions to a tee, and had no errors during installation.

 

The error appears in the product listing area, everything else works correctly.

 

The error is:

Fatal error: Cannot redeclare tep_show_category()

(previously declared in c:\program files\easyphp1-8\www\includes\header.php:169)

in c:\program files\easyphp1-8\www\includes\boxes\categories.php on line 13

 

If I remove the tep_show_category() function from header.php, the index.php seems to to lose its formatting

Interesting.... SPPC 4.15 nor any previous version changes anything in those two files. The hide products for SPPC version 2 does changes boxes/categories.php but not in that function.

 

Your header.php seems to be much larger than the standard osC one (87) so do you use some template that has it's own tep_show_category() function? Did you try commenting out the function tep_show_category() in catalog/includes/boxes/categories.php?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...