Log in

View Full Version : database error


jkwasn01
05-18-2007, 07:42 PM
all of the sudden im getting Database Error when I try to view forums.. i can view the main page ok.. http://www.thevhub.com/forums Any ideas??

Database error in vBulletin 3.6.4:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
thread.lastpost, thread.lastposter, thread.lastpostid, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount, deletedcount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason

, threadredirect.expires

FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)

LEFT JOIN post AS post ON(post.postid = thread.firstpostid)

LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)

WHERE thread.threadid IN (0,644,565,541,235,29,329)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Can't open file: 'post.MYI' (errno: 145)
Error Number : 1016
Date : Friday, May 18th 2007 @ 03:40:33 PM
Script : http://www.thevhub.com/forums/forumdisplay.php?f=19
Referrer :
IP Address : xx.xxx.xxx.xxx
Username : Xp
Classname : vB_Database

Thanks!

Lynne
05-19-2007, 03:07 AM
Have you tried doing an Optimize/Repair on the post table?

Eikinskjaldi
05-20-2007, 10:03 PM
error 145 means the table has been marked as crashed and should be repaired.

Kihon Kata
05-21-2007, 04:19 AM
all of the sudden im getting Database Error when I try to view forums.. i can view the main page ok.. http://www.thevhub.com/forums Any ideas??

Database error in vBulletin 3.6.4:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
thread.lastpost, thread.lastposter, thread.lastpostid, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount, deletedcount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason

, threadredirect.expires

FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)

LEFT JOIN post AS post ON(post.postid = thread.firstpostid)

LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)

WHERE thread.threadid IN (0,644,565,541,235,29,329)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Can't open file: 'post.MYI' (errno: 145)
Error Number : 1016
Date : Friday, May 18th 2007 @ 03:40:33 PM
Script : http://www.thevhub.com/forums/forumdisplay.php?f=19
Referrer :
IP Address : xx.xxx.xxx.xxx
Username : Xp
Classname : vB_Database

Thanks!
no your not lol