Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Daily Diamond

this code error is driving me nuts!

Status
Not open for further replies.

tonyfloyd

Level 9
Legacy Exclusive Member
Joined
Apr 3, 2007
Messages
3,219
Reaction score
2
see below....anybody know how to fix??
site is italianhomerecipes(dot)com

thnks
tony


Fatal error: Cannot redeclare register_sidebar() (previously declared in /home/tonykana/public_html/wp-includes/widgets.php:36) in /home/tonykana/public_html/wp-content/themes/TripleK2/app/includes/sbm.php on line 26
 
Domain Summit 2024

Varchar

ArcadeScript.Com
Legacy Exclusive Member
Joined
Mar 31, 2005
Messages
1,760
Reaction score
0
Need to look at the php files to debug it. The error means you have declare the function register_sidebar() multiple times. Just search for it and remove one of them and it should work.
 

tonyfloyd

Level 9
Legacy Exclusive Member
Joined
Apr 3, 2007
Messages
3,219
Reaction score
2
i had upgraded site to wordpress 2.2,,,it seems the theme TripleK2 is not compatible with 2.2....so i went back to wp 2.1.3....site is up again...however the sidebar modules dont work....i wonder of the above error message is also responsible for that.....
 

DNP

Trust & Reliability
Legacy Exclusive Member
Joined
Nov 16, 2006
Messages
7,441
Reaction score
7
Do you want us to click on your Adsense ads as well? :lol:
 

tonyfloyd

Level 9
Legacy Exclusive Member
Joined
Apr 3, 2007
Messages
3,219
Reaction score
2
Do you want us to click on your Adsense ads as well? :lol:

????.....site was done all day...just figured out that theme is not compatible with wp 2.2

too many ads??
 

DNP

Trust & Reliability
Legacy Exclusive Member
Joined
Nov 16, 2006
Messages
7,441
Reaction score
7
no :-( too many questions...

http:// forums.digitalpoint.com/search.php?searchid=4325261
 

tonyfloyd

Level 9
Legacy Exclusive Member
Joined
Apr 3, 2007
Messages
3,219
Reaction score
2
only asking...cause nobody's answering!....like yourself included...:)...whats your point in posting if u got no answer to my problem?....just like to hear yourself talk??...:)
 

JRBHosting

Level 5
Legacy Platinum Member
Joined
Nov 18, 2006
Messages
449
Reaction score
0
Tony:

That error code means, in essence, that you are declaring one function multiple times. Kind of like the sentance "The box's name is Joe the box's name is Joe." This generally happens when you either have the function ..{..} code in a loop (foreach, for, while) or you have it declared in another included file.

Jason
 

NameGuy

Level 8
Legacy Exclusive Member
Joined
Apr 19, 2003
Messages
1,827
Reaction score
2
If your function is in a separate file and included in you main php file via an include statement:

include ("myfunctions.php");

Try using this instead:

include_once ("myfunctions.php");

There is also require() and require_once() statements if your page uses that which can also be interchanged.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

No members online now.

Sedo - it.com Premiums

IT.com

Premium Members

AucDom
UKBackorder
Register for the auction
MariaBuy

New Threads

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom