Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
Still trying to recover from a server failure. The hosting company I use does not allow for me to directly see error messages so what do I need to do or tell them/ask them for?

Error Message:
-------------------------------------------------

SQL ERROR: Database error only visible to forum administrators

Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site204/web/boards/ubbthreads/mysql.inc.php on line 121
SQL ERROR: Database error only visible to forum administrators

Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site204/web/boards/ubbthreads/mysql.inc.php on line 121

--------------------------------------------------
TIA for your help!

Anonymous
Unregistered
Anonymous
Unregistered
I'll assume you're using UBB.threads 6.1.1.

Edit mysql.inc.php, and near the end of the file, temporarily change:
<pre>if ( ($user['U_Status'] != "Administrator")
&& ( (!stristr($What,"createtable")) && ...
$error = "Database error only visible to forum administrators";
}
else {
$this->errordesc = mysql_error();
}</pre>
To:
<pre>$this->errordesc = mysql_error();</pre>

That will allow you to see the actual MySQL error. By the way, the subsequent two warnings are not of interest. They're just secondary errors caused by the initial error.

Anonymous
Unregistered
Anonymous
Unregistered
Thanks for the really quick response Dave! Here's the new error message:

--------------------------------------------------
Can't open file: 'w3t_Users.MYD'. (errno: 145)
Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site204/web/boards/ubbthreads/mysql.inc.php on line 121
---------------------------------------------------
Is this something I can fix myself or do I need to ask my hosting company to do something? TIA (again!)

Anonymous
Unregistered
Anonymous
Unregistered
Can't open file: 'w3t_Users.MYD'. (errno: 145)

I think that means you need to repair that table. Try searching these forums for that message, or various parts of it. It's come up before.

Anonymous
Unregistered
Anonymous
Unregistered
That's absolutley what it means - Dave is right on.

Ask your host to repair that table if at all possible - if they can't then perhaps they can roll a backup of your database back up - you may lose posts/members added since the last backup but if they can't recover the table that may be your only other option.

Regards,

Brett Harris
Infopop Corporation


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
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 484 guests, and 138 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)