Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error


RainDrop Tech

Recommended Posts

Just installed CCGV (the latest one), and I think I might have messed something up. Anyways, I'm getting this error whenever I try to purchase any products.

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/jraindro/public_html/includes/header.php:201) in /home/jraindro/public_html/includes/boxes/categories.php on line 13

Any help would be greatly appreciated. I have tried to upload backup copies of both files, to no avail. I'm not too good with PHP, so I'd rather not go and delete things without knowing what they do...

Link to comment
Share on other sites

Probably not the first error you will get as you make changes to your site.

 

A good trick is doing a search of your error in the major search engines ... you would be surprised how many times it brings you back to the osc forums and to the information that is exactly needed.

 

For instance paste -> Fatal error: Cannot redeclare tep_show_category()

Read, read, read, test, read, read, test, read, implement.

Always back up your site and database before changes.

Always back up on a regular basis.

Link to comment
Share on other sites

tried that, all it did was remove all of my images on my page...lol. Any other ideas?
Then you made a mistake somehow. The problem is the extra space. You need to remove it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Probably not the first error you will get as you make changes to your site.

 

A good trick is doing a search of your error in the major search engines ... you would be surprised how many times it brings you back to the osc forums and to the information that is exactly needed.

 

For instance paste -> Fatal error: Cannot redeclare tep_show_category()

Since tep_show_category is specific to oscommerce, a better search would be
Fatal error: Cannot redeclare tep_show_category() site:www.oscommerce.com/forums

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

backup 3 files

catalog\includes\header.php

catalog\includes\boxes\categories.php

catalog\includes\functions\general.php

 

Then open your catalog\includes\header.php locate function tep_show_categories. Move the entire function block to general.php. Finally open the catalog\includes\boxes\categories.php and delete the tep_show_categories function block. This way the function will be in one place and you will get rid of the error.

Link to comment
Share on other sites

  • 4 weeks later...
backup 3 files

catalog\includes\header.php

catalog\includes\boxes\categories.php

catalog\includes\functions\general.php

 

Then open your catalog\includes\header.php locate function tep_show_categories. Move the entire function block to general.php. Finally open the catalog\includes\boxes\categories.php and delete the tep_show_categories function block. This way the function will be in one place and you will get rid of the error.

 

I got similar error right after installing the ACTIVE Countries Contrib:

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/impulseg/public_html/includes/header.php:180) in /home/impulseg/public_html/includes/boxes/categories.php on line 13

 

hereis the link https://st98.startlogic.com/~impulseg/addre...4e5f39ab3a938e7

 

any ideas?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...