Fatal Error - Not sure how to fix this?

Permalink
This website was working just fine yesterday...now I get this when I go to the site:

Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [145: Table './site_db/PageStatistics' is marked as crashed and should be repaired] in EXECUTE("insert into PageStatistics (cID, uID, date) values ('5', 0, NOW())") ' in /home/public_html/updates/concrete5.4.2/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php:78 Stack trace: #0 /home/public_html/updates/concrete5.4.2/concrete/libraries/3rdparty/adodb/adodb.inc.php(1037): adodb_throw('mysql', 'EXECUTE', 145, 'Table './site_d...', 'insert into Pag...', false, Object(ADODB_mysql)) #1 /home/public_html/updates/concrete5.4.2/concrete/libraries/3rdparty/adodb/adodb.inc.php(993): ADOConnection->_Execute('insert into Pag...') #2 /home/public_html/updates/concrete5.4.2/concrete/libraries/3rdparty/adodb/adodb.inc.php(761): ADOConnection->Execute('insert into Pag...', Array) #3 [internal function]: ADOConnection->Query('insert into Pag...', Array) #4 /home/public_html/updates/concrete5.4.2/concrete/libraries/database.php(73 in /home/public_html/updates/concrete5.4.2/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 78

leinteractive
 
LucasAnderson replied on at Permalink Best Answer Reply
LucasAnderson
It's an issue with your mySQL database, or rather a specific table within. If you have access to a tool like phpMyAdmin through your hosting control panel, you can navigate to the PageStatistics table and do the "Repair" function on that table, which might clear this up.

Let us know if you need more instruction.
leinteractive replied on at Permalink Reply
leinteractive
Lucas, that worked perfect. If only it could always be so easy!
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
What version of Concrete are you using? Is it showing up constantly?

You may want to try doing the following:

In the dashboard, go to 'Sitewide Settings', and go to 'Debug'. In the 'Database Tables and Content' section, check 'Refresh core database tables and blocks,' then hit the 'Refresh Databases' button.

This might remove the error. Sometimes the error is just a glitch caused by your host. This has happened to me a number of times, and doing the above, has worked for me.

Then again, just refreshing the page works, too, but doing the above helps keep your site performing properly.
leinteractive replied on at Permalink Reply
leinteractive
growthecurve, I've never seen this error before...but the above method worked, so I'm gonna let this rest for now.

Thanks!