Announcement

Collapse
No announcement yet.

MySQL Error

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

  • MySQL Error

    Database error in vBulletin 3.0.7:

    Invalid SQL: INSERT INTO pm (pmtextid, userid) VALUES (7, ) 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 ')' at line 1

    mysql error number: 1064


    Script: http://forum.??.com/private.php
    Referer: http://forum.??.com/private.php?do=newpm&pmid=10
    Shane
    CIO, FrakMedia.net
    Director of Information, BattlestarForum.com

  • #2
    Have you installed some hacks related with private.php? Can you verify you have this part of code in the same file?:

    PHP Code:
    $DB_site->query("INSERT INTO " TABLE_PREFIX "pm (pmtextid, userid) VALUES ($pmtextid$user[userid])"); 

    vBulletin QA - vBulletin Support French - Lead Project Tools developer

    Next release? Soon(tm)

    Comment


    • #3
      Do you know what line that is?

      I don't have any hacks installed.
      Shane
      CIO, FrakMedia.net
      Director of Information, BattlestarForum.com

      Comment


      • #4
        For me, it's on line 1083.

        vBulletin QA - vBulletin Support French - Lead Project Tools developer

        Next release? Soon(tm)

        Comment


        • #5
          PHP Code:
          $DB_site->query("INSERT INTO " TABLE_PREFIX "pm (pmtextid, userid) VALUES ($pmtextid$user[userid])"); 
          Yep. Same thing. Same line number also.
          Shane
          CIO, FrakMedia.net
          Director of Information, BattlestarForum.com

          Comment


          • #6
            The first thing I recommend is that you 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. Then change to this style and view your forums with it. You should not get this error with the original files aand templates.
            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


            • #7
              by any chance has your forum used the impex importer on the database ? did you make a backup before you used the impex importer ?
              :: Always Back Up Forum Database + Attachments BEFORE upgrading !
              :: Nginx SPDY SSL - World Flags Demo [video results]
              :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

              Comment


              • #8
                No import. I deleted something out of the header template which got rid of the userid. :-)
                Shane
                CIO, FrakMedia.net
                Director of Information, BattlestarForum.com

                Comment

                Loading...
                Working...
                X