Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2003
Posts: 35
User
User
Joined: Oct 2003
Posts: 35
Out of the blue, our message board began displaying this error message when a user clicks "Post" in a forum" or actually makes a post. The post goes through successfully, but this error continues to show up:

SQL ERROR: Unable to do_query: SELECT B_Hostname,B_Uid,B_Reason FROM w3t_Banned WHERE B_Uid='4' OR '68.40.200.13' LIKE B_Hostname
Table 'passport.w3t_banned' doesn't exist

I tried repairing the tables but it doesn't seem to have helped.

Our board is at http://www.passporterboards.com and we're running UBB threads 6.3.2.

Does anyone have any ideas?

Thanks so much!

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
sounds like you have a froaked table try running

REPAIR TABLE w3t_Banned

in your admin menu SQL command box OR better use phpMyAdmin to run that command.

Joined: Oct 2003
Posts: 35
User
User
Joined: Oct 2003
Posts: 35
Thank you, scroungr, but running that SQL command didn't effect anything. I closed the forums, input the command, and was told that 3 rows were affected. I opened the forums back up and tried to post, and I get the same exact error message:

SQL ERROR: Unable to do_query: SELECT B_Hostname,B_Uid,B_Reason FROM w3t_Banned WHERE B_Uid='4' OR '68.40.200.13' LIKE B_Hostname
Table 'passport.w3t_banned' doesn't exist

Any other ideas?

Thanks,

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Hmmm and you nor your host made any changes recently?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
IF the banned table is really missing - you'll have to recreate it (and you won't have a record of anyone you banned before).

But this query will recreate the table:

CREATE TABLE w3t_Banned(
B_Uid INT(9) UNSIGNED NOT NULL,
B_Hostname varchar(60) NOT NULL,
B_Reason text
)";

Sponsored Links
Joined: Oct 2003
Posts: 35
User
User
Joined: Oct 2003
Posts: 35
Thanks Josh -- when I tried the SQL command I got this error:

SQL ERROR: Unable to do_query: CREATE TABLE w3t_Banned( B_Uid INT(9) UNSIGNED NOT NULL, B_Hostname varchar(60) NOT NULL, B_Reason text )";
You have an error in your SQL syntax near '"; ' at line 5 row(s) affected by your query.

I copied and pasted it from your message. Not sure what could be wrong with the syntax.

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
I think you need to drop the "; off the end of that query.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
yeah so command should be

CREATE TABLE w3t_Banned( B_Uid INT(9) UNSIGNED NOT NULL, B_Hostname varchar(60) NOT NULL, B_Reason text )

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, my bad. Copied it from the createtable.php script.

Joined: Oct 2003
Posts: 35
User
User
Joined: Oct 2003
Posts: 35
Thank you so much! The error is now gone.

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
so somehow the Banned Table got deleted? Hmmm sounds like maybe a future MYSQL problem or someone hit the wrong key


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)