MyBB Community Forums

Full Version: Error Message Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello--
I've been getting the following error from my forum when I try to visit it. The error will only show up once and while. When the error does come up its on a blank white page... other times no error is presented and things work fine... any ideas as to what is causing this?

Quote:mySQL error: 1016
Can't open file: 'mybb_sessions.MYI' (errno: 145)
Query: SELECT sid,uid FROM mybb_sessions WHERE sid='99b0ed5a1739b54ee202cca550200bce' AND ip='30.230.31.36'
It would appear the mybb_sessions table is corrupt.

Upload the following PHP script and access it via your browser:
<?php
require "./global.php";
$db->query("REPAIR TABLE mybb_sessions;");
echo "Repair complete.<br />";
$query = $db->query("SELECT COUNT(*) AS count FROM mybb_sessions");
$count = $db->fetch_array($query);
echo $count['count']." rows in table.<br />";
?>

Let me know if it still happens - and the resulting page when you access it via your browser.

Regards,
Chris
It doesn't seem to work... when I view the page I put that code onto it redirects me to my custom error page meaning the page does not exsist. Confused
You put it in a separate file right?

And it is also inside your MyBB directory?
Yes, and yes. I've been having some trouble with my host. Give me a minute and let me confirm that nothing is wrong with the server right now.