There was a problem with our server this evening, I'm not sure what yet. When it came back I had to repair the tables and posts before the forums would work again. I was then able to post as admin.
I then became a user to see if they could post and I was presented with this message:
Database error only visible to forum administrators
I could then not log back in as admin and am now shown this:
Fatal error: Call to a member function error() on a non-object in /home/vhost/domain.com/html/libs/mysql.inc.php on line 210
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Well, the SQL error is only available to admin's; so you'll need to get the content of the error to see what the problem is; you can do this by either enabling sql logging in the control panel or theres a "tick" in the /libs/mysql.inc.php file to show errors to all users (just search for error i think)
Fatal error: Call to a member function error() on a non-object in /home/vhost/domain.com/html/libs/mysql.inc.php on line 210
From users screen:
Script: /home/vhost/domain.com/html/libs/ubbthreads.inc.php Line#: 2026 SQL Error: Table 'ubbt_CACHED_PERMISSIONS' is marked as crashed and should be repaired SQL Error #: 1194 Query: delete from ubbt_CACHED_PERMISSIONS where CACHED_TIMESTAMP < '1183295190'
Script: /home/vhost/domain.com/html/libs/ubbthreads.inc.php Line#: 2026 SQL Error: Table 'ubbt_CACHED_PERMISSIONS' is marked as crashed and should be repaired SQL Error #: 1194 Query: delete from ubbt_CACHED_PERMISSIONS where CACHED_TIMESTAMP < '1183295190'
Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Run this query from your admin center in database tools, if you can't access your CP, use PHPMyAdmin (or some other similar MySQL database tool) and run the following command:
Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
I believe that data is just temporary, so you could try removing the offending lines: DELETE FROM `ubbt_CACHED_PERMISSIONS` where `CACHED_TMESTAMP`=1183295190
The issue seems to be that the /home/vhost/html/libs/mysql.inc.php file is of zero length - I believe this would contain the relevant sql class that is reporting the error.
Upon checking the following additional files are also zero bytes in size.
The only problem with their answer is that you got sql errors. If mysql.inc.php had been empty, you would have gotten no sql errors, since you would not have even known to talk to the database.
In short, their answer could not have possibly caused the original error.
And even then, the only stock one that would be required is the mysql.inc.php which as ian said, couldn't have been the original error; possibly when you edited the file and you uploaded it to the server it choked