XF 2.1 Marked as crashed and should be repaired in src/XF/Db/AbstractStatement.php on line 217

Elizabeth

Well-known member
Licensed customer
I know I am way behind in upgrades but I haven't had reliable internet service for several years due to traveling in an RV. So I am still running 2.1X best I can find since I can't get logged in and having to figure it out from my files.

Anyway I attempted to go to my site about an hour ago and discovered I had a major issue when trying to log in. Its fine if viewed as a guest.

An exception occurred: [XF\Db\Exception] MySQL statement prepare error [145]: Table './bariatri_xf2/xf_session' is marked as crashed and should be repaired in src/XF/Db/AbstractStatement.php on line 217

XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196

XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 39

XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 54

XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 89

XF\Db\AbstractAdapter->query() in src/XF/Session/DbStorage.php at line 57

XF\Session\DbStorage->writeSession() in src/XF/Session/Session.php at line 215

XF\Session\Session->save() in src/XF/Pub/App.php at line 447

XF\Pub\App->complete() in src/XF/App.php at line 2180

XF\App->run() in src/XF.php at line 390

XF::runApp() in index.php at line 20

I have absolutely NO clue how to fix this and even searching hasn't helped. If someone could point me to the answer it would be appreciated.
 
Repair or truncate (empty) the xf_session table using phpmyadmin.

Your host will be able to assist if you don't know how to.
 
Back
Top Bottom