Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
8 registered (carolinasoutdoor, David Dreezer, DougMM, Mark S, Ruben Rocha, Sirdude, 2 invisible), 22 Guests and 20 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/04/09
Posts: 1
Top Posters (30 Days)
Ruben Rocha 96
Rick 85
Mark S 74
Gizmo 50
Thelockman 49
driv 35
Sirdude 32
ntdoc 28
packlite 26
AllenAyres 26
Latest Photos
bear test
Beach Barbie-Q
Sunset
Accept the challenge!
Trees
Topic Options
Rate This Topic
#193558 - 07/31/07 05:14 PM Errors and Solutions
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12089
Loc: Portland, OR; USA
This thread will take on various possible error messages and their solutions on a case basis.
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#193559 - 07/31/07 05:28 PM Re: Errors and Solutions [Re: Gizmo]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12089
Loc: Portland, OR; USA
Database only viewable by forum administrator
This error generally is only shown to "non admin's", as the admin's should always see the full error (hence the error message); if for whatever reason you're getting this error and are an admin (perhaps you're logged out) there are a couple of options.

If you have CP Access and Error Logging Enabled
CP -> Tools & Info -> Logs -> View SQL Errors Tab

Select the log you would like to view, this will show you exactly what the logged errors with MySQL are, so that you can determine if you're having a server or script problem.

If you don't have CP Access or Error Logging Enabled
Edit the libs/mysql.inc.php file, at about line you'll see:
 Code:
		// IF YOU SET THE VARIABLE BELOW TO 1 IT WILL SHOW THE SQL ERRORS TO ALL
		// USERS.  USEFUL IF YOU CANNOT LOG IN AND NEED TO SEE THE SQL ERRORS
		$showerror = 0;


Change this to
 Code:
		// IF YOU SET THE VARIABLE BELOW TO 1 IT WILL SHOW THE SQL ERRORS TO ALL
		// USERS.  USEFUL IF YOU CANNOT LOG IN AND NEED TO SEE THE SQL ERRORS
		$showerror = 1;


And upload the file back to your server; any error logs at this point will be in plain text and will not provide the DB Errors Admin Only message as above. We highly advise changing this back once your error is determined and fixed for security/consistency sake.

To enable MySQL Error Logging from within UBB.Threads
This is fairly easy to do, first you'll need to create a directory to house your logs, and you'll need to make it writable by your webserver (chmodded 777 in *nix environments).

For this example, we'll assume that the FULL PATH to this directory is /home/ubbcentral.com/logging/ (or c:/htdocs/ubbcentral.com/logging/)

Visit the Logging page in your control panel (CP -> Master Settings -> Primary Settings -> Logging Tab) and insert the full path to the logging directory you have created, and tick the "Log MySQL Errors" checkbox; be sure to "test" the directory to ensure it passes the check (to ensure the webserver can write to it).

Now, when an error is encountered, it will be written to an error log.

What to do with errors?
Well, this depends, if it's a UBB error, then you'll want to post it here as a support or bug thread. If it's a server error (such as your server killing the connection to the mysql server, that's more an issue for your webhost).
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top


Moderator:  Gizmo 
Shout Box

Today's Birthdays
theregit
Recent Topics
7.4.1 show/hide category bug
by Seattlebrian
Today at 11:56 AM
7.4.2 Discussion
by Rick
Today at 10:21 AM
UBBCentral now running 7.4.2
by Rick
Today at 10:21 AM
New members don't get access and are not displayed in the config panel
by Yomar
Yesterday at 03:32 AM
How to Change Link Color / Underline in styles?
by ECNet
01/07/09 10:00 PM
Forum Stats
4298 Members
33 Forums
30692 Topics
156037 Posts

Max Online: 978 @ 06/24/07 08:19 PM