Previous Thread
Next Thread
Print Thread
Hop To
#238527 08/07/2010 11:21 AM
Joined: Oct 2006
Posts: 20
R
stranger
stranger
R Offline
Joined: Oct 2006
Posts: 20

Hi,

My forum has been up and running fine for several years, but this morning when I tried to access it I got the following error. I haven't made any changes and can't seem to access any of the forum pages, including the control panel. Does anyone have any suggestions on how I can fix this and get my site back up and running?

Code
	
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. 

Thanks!
http://www.iwrf.com/forums/ubbthreads.php

Rugby #238528 08/07/2010 11:35 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If you don't have SQL error logging enabled in your control panel, then what you need to do is edit your libs/mysql.inc.php file. Look for a line that has:

$showerror = 0;

Change that to:

$showerror = 1;

You should then get the actual database error and we can give more info on the issue.

Rick #238529 08/07/2010 11:54 AM
Joined: Oct 2006
Posts: 20
R
stranger
stranger
R Offline
Joined: Oct 2006
Posts: 20
Thanks Rick. Since I can't access the file from the CP, can I edit it with notepad and then replace the existing file? Also, what permissions should I give to mysql.inc.php file?

Cheers-
John

Rugby #238541 08/07/2010 1:51 PM
Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
The file has to be edited in NotePad (or any other standard text-only editor; don't use Word or anything that'll add additional characters to the file).

The file should be 644.


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 #238543 08/07/2010 2:21 PM
Joined: Oct 2006
Posts: 20
R
stranger
stranger
R Offline
Joined: Oct 2006
Posts: 20
Okay, made the edit and now get this error message.

PHP Code
UBB Error
We encountered a problem. The reason reported was

Script: /usr/www/users/iwrf/forums/libs/ubbthreads.inc.php
Line#: 2149
SQL Error: Incorrect key file for table './iwrf_ubbthreads/ubbt_CACHED_PERMISSIONS.MYI'; try to repair it
SQL Error #: 126
Query: select USER_ID,CACHED_PERMISSION_DATA from ubbt_CACHED_PERMISSIONS where USER_ID = '2'  

Where to next?

Rugby #238545 08/07/2010 3:03 PM
Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
If you have PHPMyAdmin you can access the database and repair that table


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 #238546 08/07/2010 3:41 PM
Joined: Oct 2006
Posts: 20
R
stranger
stranger
R Offline
Joined: Oct 2006
Posts: 20
Got it... many thanks!

John

Rugby #238547 08/07/2010 4:07 PM
Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
You'll want to be sure that after the issue is repaired, you reverse the change to libs/mysql.inc.php since it can divulge information to users who don't need it...


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!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
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
Who's Online Now
4 members (Baldeagle, Ruben, ahmed047, 1 invisible), 835 guests, and 149 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 20240501)