Previous Thread
Next Thread
Print Thread
Hop To
#207571 02/28/2008 9:22 PM
Joined: Nov 2006
Posts: 15
1
stranger
stranger
1 Offline
Joined: Nov 2006
Posts: 15
Just started getting erorr messages out of the blue... Seems users are getting them to but have not clue where to start looking.

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.

1QuickSI #207573 02/28/2008 9:59 PM
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Try going into phpMyAdmin from your Web host control panel

  • click on Databases
  • click on the database your forum is using
  • go to the very bottom of the page and you should see an option to check all tables.
  • Click CHECK ALL and that should place a check mark on all the tables.
  • Then once again go to the bottom of the page and select in the dropdown box REPAIR TABLE
  • It will then work on repairing them if there is an issue.
  • Then go back and run the OPTIMIZE TABLE command


Then try to connect to your forums and see if you're still having the same issue.

ntdoc #207576 02/29/2008 1:41 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
You can view the error by editing the libs/mysql.inc.php file and there should be an option "show_errors" and it should tell you to change it from a 0 to a 1 to show all mysql errors; do that then upload the file back.

As for WHY these errors are hidden from non-admins is that it could potentially contain passwords, usernames, etc.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #207601 02/29/2008 12:20 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Another good thing is to setup MySQL error logging in the control panel. That way, when users get errors it will log them. You can view these via the CP or if the site isn't working at all, you can FTP into your site and view the errors.


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
2 members (DennyP, 1 invisible), 969 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)