Announcement

Collapse
No announcement yet.

Error Number : 1064

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error Number : 1064

    Hello,

    I got this error while trying to upload a gif image to an existing post. How can it be fixed? Thanks.
    Database error in vBulletin 3.6.3:
    Invalid SQL:
    SELECT post.postid, post.threadid, thread.title, posthash, attachment.filename
    FROM vb_attachment AS attachment
    LEFT JOIN vb_post AS post ON (post.postid = attachment.postid)
    LEFT JOIN vb_thread AS thread ON (thread.threadid = post.threadid)
    WHERE attachment.userid =
    AND attachment.filehash = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    LIMIT 1;
    MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND attachment.filehash = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'

    Error Number : 1064
    Date : Sunday, November 12th 2006 @ 01:17:31 PM
    Script : http://www.site.com/newattachment.ph...eattach&p=1128
    Referrer : http://www.site.com/newattachment.ph...dae9ed40f54810
    IP Address : xxxxxxxxxxxxxxxxxxxxxxxxxx
    Username : xxxxxxxxxxxxxx
    Classname : xxxxxxxxxxxx

  • #2
    SQL Syntax errors are almost always related to modified code. To troubleshoot this, the first thing you need to do is remove any hacks or plugins, then see if you still have this problem.

    If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.

    Next, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it. Do you have the same problem?
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X