Previous Thread
Next Thread
Print Thread
Hop To
#237057 05/27/2010 7:31 AM
Joined: Mar 2008
Posts: 24
stranger
stranger
Joined: Mar 2008
Posts: 24
Hello,

I got an email from a customer. She wanted to access our forums and got the following error message:

UBB Error We encountered a problem. The reason reported was
Database error only visible to forum administrators
Please click back to return to the previous page.


I have never been reported about this problem before.
Is it know for you guys? And do you know how to solve this?

Thanks for the help,
Lynn

Lynn #237058 05/27/2010 8:43 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Do you have SQL error logging turned on in the control panel? If so, can you take a look there to grab the actual database error?

Rick #238025 07/20/2010 2:15 PM
Joined: Jul 2010
Posts: 2
G
stranger
stranger
G Offline
Joined: Jul 2010
Posts: 2
control panel for mySQl?

Grey owl #238026 07/20/2010 2:16 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
No, I was referring to the UBB control panel. You can turn on logging of all MySQL errors relating to UBB in there.

Grey owl #238027 07/20/2010 2:19 PM
Joined: Jul 2010
Posts: 2
G
stranger
stranger
G Offline
Joined: Jul 2010
Posts: 2
i have simular problem how can i see this error?
maybe i can modify some file to display this error

The problem i have is after i moved forum to the new host i
got these:
UBB Error We encountered a problem. The reason reported was
Database error only visible to forum administrators

Please use your back button to return to the previous page.
if there is a way to see the error it would be very helpfull

Grey owl #238028 07/20/2010 2:22 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Easy way is to edit your libs/mysql.inc.php file

Look for the line that has $showerror = 0; and change that to $showerror = 1;

Save it and that should show you the actual database error.

Rick #238059 07/21/2010 3:59 PM
Joined: Jul 2010
Posts: 13
J
stranger
stranger
J Offline
Joined: Jul 2010
Posts: 13
This works to see the actual error being thrown. Be sure to change that value back once you resolve the problem or it could be used by someone to hack into the forum later.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 225 guests, and 88 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)