MyBB Community Forums

Full Version: Weird ERROR - PLEASE HELP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having a really weird error, and others as well.
Whenever I try to go to my forum,

http://forum.spsource.net

I get a strange error: MySQL error: 1016
Can't open file: 'mybb_sessions.MYI' (errno: 145)
Query: SELECT * FROM mybb_sessions WHERE sid='0' AND ip='My IP, and your IP when you visit it displays here'

Can someone please help me quickly with how to fix this?
I have not made any changes to anything, it just came in.
Try running REPAIR TABLE mybb_sessions within phpmyadmin if you got it. That should fix it.
Or add
$db->query('REPAIR TABLE mybb_sessions');
To your global.php. At the end possible before the ?>
You need to remove it again onces you've ran it ones though.
Thanks
What line do you recommend to place that code in?

Also: When I go to PHPmyadmin it says:

Error

SQL query: DocumentationEdit

SELECT COUNT( * ) AS num
FROM spsourceforum.mybb_sessions

MySQL said: Documentation
#1016 - Can't open file: 'mybb_sessions.MYI' (errno: 145)
Doesn't matter as long as it's above your ?> in your global.php file. You can just add it right above it. But remember to delete it after you've ran it onces.
Or you can just upload this file I attached and run it in your browser and delete it afterwards.

Therefore you need to repair the table. Just run that sql in phpmyadmin and it should work.
Hmm. I tried running the code you said, and it doesn't work.

(I have not removed it yet)

If you don't mind, could you do it for me? Please add my msn if you can ( kikkerkont(at)spsource.net )

Thank you very much Smile
Nevermind, I downloaded the file and it works! Thanks CraKteR!!