Current location: Hot Scripts Forums » Programming Languages » PHP » Cannot Redeclare Error


Cannot Redeclare Error

Reply
  #1 (permalink)  
Old 06-30-06, 09:05 PM
shortd81 shortd81 is offline
Newbie Coder
 
Join Date: Nov 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Cannot Redeclare Error

I have OSC for an online shop I'm trying to get started. I tried to install an affiliate mod and now I'm getting the follwing error.

Quote:
Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/cdmall/public_html/includes/header.php:210) in /home/cdmall/public_html/includes/boxes/categories.php on line 13
If anyone is familiar with this type of error please post. Maybe what you say will lead me in the right direction thanks.

My site is:
www.thecdmall.com
but I get the error on all my affiliate pages.
http://www.thecdmall.com/affiliate_info.php
__________________
DetailDirectory.com Soon To Be The Largest Web Directory On The Net!
Dollarfriend.com - Best Money Making Site On The Net!
Shortd81's Poker Blog - Poker Blog of Amateur Poker Player!
HYIPPoker.com - Online Poker Forum For Micro Players!
Reply With Quote
  #2 (permalink)  
Old 06-30-06, 09:44 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
The problem is exactly as the error message states.

A function named tep_show_category() is declared in /home/cdmall/public_html/includes/header.php on line 210

and it is also declared in /home/cdmall/public_html/includes/boxes/categories.php on line 13

You must rename one of them and rename all the places where that one is used to match it.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Reply With Quote
  #3 (permalink)  
Old 06-30-06, 10:29 PM
shortd81 shortd81 is offline
Newbie Coder
 
Join Date: Nov 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mab
The problem is exactly as the error message states.

A function named tep_show_category() is declared in /home/cdmall/public_html/includes/header.php on line 210

and it is also declared in /home/cdmall/public_html/includes/boxes/categories.php on line 13

You must rename one of them and rename all the places where that one is used to match it.
Ok so is that a file would you think?
__________________
DetailDirectory.com Soon To Be The Largest Web Directory On The Net!
Dollarfriend.com - Best Money Making Site On The Net!
Shortd81's Poker Blog - Poker Blog of Amateur Poker Player!
HYIPPoker.com - Online Poker Forum For Micro Players!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Syntax error gigafare PHP 4 04-19-06 02:03 AM
ASP upload prob minority ASP 1 06-27-05 08:35 AM
Error: 500 Can't connect to ppm.ActiveState.com:80 (connect: Unknown error) padmanaban_bala Perl 2 05-03-05 05:00 PM
parse error... help? kappler0 PHP 2 01-21-04 03:57 AM
[php error] parse error | fatal error xeoHosting PHP 1 01-03-04 08:12 PM


All times are GMT -5. The time now is 07:19 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.