Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot redeclare tep_show_category() (previously declared in


Guest

Recommended Posts

Ok... I'm not able to figure out the problem here, any help is appreciated. I get this when I attempt to checkout.

 

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in

 

/home/gegit/public_html/catalog3/includes/header.php:148) in

 

/home/gegit/public_html/catalog3/includes/boxes/categories.php on line 59

 

 

From what I've read in the forums, this is usually an error received when you have two category sections but this doesn't seem to be the same as those. It would make sense because I am using contribution MVS 1.1 and I believe the catalog section and the vendor section are the same. I just attempted to enter the catalog section and received this error, first time I've seen this:

 

1054 - Unknown column 'cd.categories_htc_title_tag' in 'field list'

 

select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, cd.categories_htc_title_tag, cd.categories_htc_desc_tag, cd.categories_htc_keywords_tag, cd.categories_htc_description from categories c, categories_description cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id = '1' order by c.sort_order, cd.categories_name

 

 

If necessary I can post the code, just didn't want to clutter the screen.

 

Thank you,

 

Joshua

Link to comment
Share on other sites

  • 2 weeks later...
1054 - Unknown column 'cd.categories_htc_title_tag' in 'field list'

 

select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, cd.categories_htc_title_tag, cd.categories_htc_desc_tag, cd.categories_htc_keywords_tag, cd.categories_htc_description from categories c, categories_description cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id = '1' order by c.sort_order, cd.categories_name

If necessary I can post the code, just didn't want to clutter the screen.

 

Thank you,

 

Joshua

 

You just should to replace the original 'index.php' file to the template 'index.php' ;). Greetings

Link to comment
Share on other sites

Ok... I'm not able to figure out the problem here, any help is appreciated. I get this when I attempt to checkout.

Fatal error: Cannot redeclare tep_show_category() (previously declared in

 

/home/gegit/public_html/catalog3/includes/header.php:148) in

 

/home/gegit/public_html/catalog3/includes/boxes/categories.php on line 59

Joshua

Hi Joshua,

Check in which all pages is tep_show_category() defined. Since PHP allows include and required, it doesn't like same method or signature defined in a single page, and hence gives this error.

A. Check page that gives this error - what all has been included or required.

B. Search in each page if tep_show_category() is defined.

C. Comment it out from one of the place to ensure it is defined only once.

 

That would remove the errors on your site.

 

Cheers,

Best Regards,
Gaurav

Link to comment
Share on other sites

Ok... I'm not able to figure out the problem here, any help is appreciated. I get this when I attempt to checkout.

Fatal error: Cannot redeclare tep_show_category() (previously declared in

 

/home/gegit/public_html/catalog3/includes/header.php:148) in

 

/home/gegit/public_html/catalog3/includes/boxes/categories.php on line 59

From what I've read in the forums, this is usually an error received when you have two category sections but this doesn't seem to be the same as those. It would make sense because I am using contribution MVS 1.1 and I believe the catalog section and the vendor section are the same. I just attempted to enter the catalog section and received this error, first time I've seen this:

 

1054 - Unknown column 'cd.categories_htc_title_tag' in 'field list'

 

select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, cd.categories_htc_title_tag, cd.categories_htc_desc_tag, cd.categories_htc_keywords_tag, cd.categories_htc_description from categories c, categories_description cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id = '1' order by c.sort_order, cd.categories_name

If necessary I can post the code, just didn't want to clutter the screen.

 

Thank you,

 

Joshua

For the first problem, see this. For the second, that is usually because the database changes for Header Tags weren't made.

 

Jack

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...