RainDrop Tech Posted May 13, 2006 Share Posted May 13, 2006 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 More sharing options...
Jack_mcs Posted May 13, 2006 Share Posted May 13, 2006 See post 312 in this thread and follow it for a few posts. 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 More sharing options...
RainDrop Tech Posted May 13, 2006 Author Share Posted May 13, 2006 tried that, all it did was remove all of my images on my page...lol. Any other ideas? Link to comment Share on other sites More sharing options...
ccubed_99 Posted May 13, 2006 Share Posted May 13, 2006 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 More sharing options...
Jack_mcs Posted May 14, 2006 Share Posted May 14, 2006 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 More sharing options...
Jack_mcs Posted May 14, 2006 Share Posted May 14, 2006 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 More sharing options...
RainDrop Tech Posted May 19, 2006 Author Share Posted May 19, 2006 Can't figure out where I'm going wrong here. Anyone willing to take a look at it for me? I did the searches, but can't understand what people are talking about. Link to comment Share on other sites More sharing options...
Guest Posted May 20, 2006 Share Posted May 20, 2006 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 More sharing options...
dittones Posted May 21, 2006 Share Posted May 21, 2006 Rain Drop Tech, I think that your function is defined twice...as above move the function into a common module general.php...If this works you may want to review my this is so. Roman Link to comment Share on other sites More sharing options...
RainDrop Tech Posted May 26, 2006 Author Share Posted May 26, 2006 Alrighty... looking into it, I have no clue where the function ends. If anyone would be willing to look at my site for me, I would appreciate it. Link to comment Share on other sites More sharing options...
dittones Posted May 27, 2006 Share Posted May 27, 2006 RainDrop Tech Where the next function begins or end of the module (general.php) Roman Link to comment Share on other sites More sharing options...
skarmel19 Posted June 23, 2006 Share Posted June 23, 2006 backup 3 filescatalog\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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.