No announcement yet.

Database error in vBulletin 3.7.3 when deleting posts

  • Filter
  • Time
  • Show
Clear All
new posts

  • Database error in vBulletin 3.7.3 when deleting posts

    when ever any mods or admin try do delete posts they get this message

    Database error in vBulletin 3.7.3:
    Invalid SQL:
            SELECT post.postid, post.threadid, post.parentid, post.visible, post.title,
                post.pagetext, post.iconid, post.userid,, post.userid AS posteruserid,
                thread.forumid, thread.title AS thread_title, thread.postuserid, thread.firstpostid, thread.visible AS thread_visible
            FROM post AS post
            LEFT JOIN thread AS thread USING (threadid)
            WHERE postid IN (14786)
            ORDER BY postid;
    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 ' post.userid AS posteruserid,
                thread.forumid, thread.title AS thread_title, ' at line 2
    Error Number  : 1064
    Request Date  : Saturday, October 11th 2008 @ 02:16:04 AM
    Error Date    : Saturday, October 11th 2008 @ 02:16:04 AM
    Script        :
    Referrer      :
    IP Address    :
    Username      : Deathjam
    Classname     : vB_Database
    MySQL Version : 5.0.67-log
    i don't really know much sql so i have no idea how to fix it

  • #2
    Plz try to close the hoke system

    admincp bulletin hok


    • #3
      sorry i don't understand, what is the hoke system


      • #4
        Go to admincd-vbulletin option-system plugin/hook-systemet and klick no and the try


        • #5
          hmm ok i've done that but still get the error


          • #6
            Invalid SQL errors are almost always related to modified code. To troubleshoot this, first 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. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

            Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

            [Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

            Next, disable all plugins.

            Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

            define('DISABLE_HOOKS', true);

            Then if you still have this problem, 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.


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