Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I discovered a banning bug in 6.5.5 that could also be a problem in version 7, if this feature hasn't been tested yet.

Here is the error message in the 6.5.5 bug:

Script: /home/virtual/site5/fst/var/www/html/ubbthreads/admin/doupdatebanlists.php - Line: 69
INSERT INTO w3t_Banned
VALUES
('68.186.88.5')
- Column count doesn't match value count at row 1

I would appreciate a fix for 6.5.5 as well as a test request here for version 7.

Last edited by Rick; 10/01/2006 11:44 AM.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, that looks like your Banned table has a field in there that should no longer be there. That table used to have a couple fields, but in 6.5 it was reduced to 1 field. Definitely not an issue with 7.0.

Run this command from the SQL area:

Code
show fields from w3t_Banned

The only field that should be there is B_Hostname. If there are more than that, the others need to be dropped. If you're not sure how to drop the field, just post here what fields came back from the query above.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
This is what it is showing:

B_Uid tinyint(4) 0
B_Hostname varchar(60)
B_Reason tinyint(4) 0

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, you'll need to drop 2 of those fields.

alter table w3t_Banned
drop B_Uid,
drop B_Reason

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Did it and it's working good now.

Thank you.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Ruben, Nightcrawler), 411 guests, and 171 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)