+ Reply to Thread
Results 1 to 7 of 7

Thread: invalid SQL - please help

  1. #1
    New Member beej is on a distinguished road
    Join Date
    Apr 2001
    Posts
    13

    invalid SQL - please help

    im getting this error on older posts. any idea why?


    error:

    Database error in vBulletin: Invalid SQL:
    SELECT

    post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title AS icontitle,icon.iconpath,
    attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
    ,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar
    FROM
    post
    LEFT JOIN icon ON icon.iconid=post.iconid
    LEFT JOIN user ON user.userid=post.userid
    LEFT JOIN userfield ON userfield.userid=user.userid
    LEFT JOIN avatar ON avatar.avatarid=user.avatarid LEFT JOIN customavatar ON customavatar.userid=user.userid
    LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid


    WHERE
    post.postid IN (0,777,779,788,793,838,871,922,933,941,978,1092)
    ORDER BY dateline


    mysql error: Got error -1 from table handler
    mysql error number: 1030
    Date: Friday 11th of May 2001 02:40:22 AM
    Script: /board/showthread.php?threadid=126


    if anyone can help that would be great. thanks

  2. #2
    Former Lead Developer, vBulletin Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier's Avatar
    Join Date
    Sep 2000
    Location
    Reading, UK
    Posts
    8,228
    Blog Entries
    6
    This sounds like table corruption... check in the mysql forum for a thread by Eva2000 about how to repair your tables.
    Meh. | Twitter: @KierDarby | Web: KierDarby.com

  3. #3
    New Member beej is on a distinguished road
    Join Date
    Apr 2001
    Posts
    13
    thanks, i read over that but i don't understand it.
    im running myphpadmin and searching this board for help, but so far im at a total loss. im a very inexperience php/mysql user :/ and im not on a dedicated server. there are multiple users accessing mysql.

    if anyone can help that would be great.


    edit- seems this error is happening on random threads. i contacted my host, they might have answers
    Last edited by beej; Fri 11th May '01 at 7:31am.

  4. #4
    vBulletin Developer Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham's Avatar
    Join Date
    May 2000
    Location
    California
    Age
    35
    Posts
    13,941
    Blog Entries
    16
    Ask your host to check your database for corruption. If they don't know how than start looking for another host.
    vBulletin Developer since Dec 2000

  5. #5
    New Member beej is on a distinguished road
    Join Date
    Apr 2001
    Posts
    13
    well, contacted the host, and they say its a vbulletin problem, cuz they have several people running vb on thier servers and this is the first time they've heard of this problem.

    maybe reinstalling it would help ?
    any other ideas?

  6. #6
    Senior Member Chris Schreiber is on a distinguished road
    Join Date
    Jun 2000
    Location
    Philadelphia, PA
    Age
    37
    Posts
    4,113

    Re: invalid SQL - please help

    Originally posted by beej
    mysql error: Got error -1 from table handler
    mysql error number: 1030
    This error number indictates database corruption. You host needs to run isamchk or myisamchk to repair your database. (And like Freddie says, if they don't know how to do this, you should look for a new host).
    Chris Schreiber || Fast 4GL Systems, Inc. || ProgressTalk.com Forums

    * vBulletin Moderator (MySQL / Server Configuration) and Support

  7. #7
    New Member beej is on a distinguished road
    Join Date
    Apr 2001
    Posts
    13
    seems i might be looking for a new host. they're still insisting its a vb error, even after i posted all sorts of references to what the error is and how to fix it.

    (big sigh)

    i did however manage to get all my errors fixed. first i ran repair.php (a godlike program) and found almost every table was corrupt. Then using phpmyadmin (sp?) i dropped and created each table, and had to copy and paste a tonne of info in. that took forever, but it works now.

    today i recieved another funky error, but ran repair.php and everything was hunky dorey after that.


    just figured i'd share

    stoopid host

+ Reply to Thread

Similar Threads

  1. Invalid SQL:
    By Vanhalen4041 in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 2
    Last Post: Fri 20th Jun '03, 8:46pm
  2. Invalid SQL:
    By Sabrina in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 57
    Last Post: Thu 12th Jun '03, 5:37pm
  3. Invalid SQL
    By Furton in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 3
    Last Post: Tue 13th Aug '02, 8:19pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts