Database Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Falcon Capt
    Senior Member
    • May 2006
    • 237
    • 4.2.x

    [Forum] Database Error

    Received identical 2 database errors today, can anyone decipher what they may be from?

    Code:
    Database error in vBulletin 4.1.12:
     
    Invalid SQL:
     
                      SELECT post.*,userfield.*, usertextfield.*, user.*, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar,
                                        customavatar.dateline AS avatardateline, customavatar.width AS width, customavatar.height AS height,
                                        customavatar.height_thumb AS height_thumb, customavatar.width_thumb AS width_thumb, customavatar.filedata_thumb
                      FROM post AS post
                            LEFT JOIN user AS user ON (user.userid = post.userid)
    LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
    LEFT JOIN usertextfield AS usertextfield ON (user.userid = usertextfield.userid)
    LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)
    LEFT JOIN customavatar AS customavatar ON (customavatar.userid = post.userid)
                      WHERE post.postid IN (.);
     
    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 10
    Error Number  : 1064
    Request Date  : Friday, June 15th 2012 @ 04:40:38 PM
    Error Date    : Friday, June 15th 2012 @ 04:40:38 PM
    Script        : http://forums.XXXXXXXXXX.com/search.php?searchid=2171638
    Referrer      : http://forums.XXXXXXXXXX.com/search.php?do=process
    IP Address    : XXX.XXX.XXX.XXX
    Username      : Unregistered
    Classname     : vB_Database
    MySQL Version :
  • Riasat
    Senior Member
    • Aug 2006
    • 4013

    #2
    I have seen this error in past a few times but was never able to repro it.

    Comment

    • doubleclick
      Senior Member
      • Jun 2004
      • 218

      #3
      Hello -
      I just got the 1064 error as well while moving a post out of a thread to a new thread. I went back to the thread to see what happened, and it had in fact moved. Not sure what the consequences, if any, of the error.

      Database error in vBulletin 4.2.0:

      Invalid SQL:
      DELETE FROM vbactivitystream
      WHERE
      typeid =
      AND
      contentid IN (SELECT postid FROM vbpost WHERE threadid IN (8351,8359));

      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
      contentid IN (SELECT postid FROM vbpost WHERE threadid IN (8351,8359))' at line 4
      Error Number : 1064
      Request Date : Monday, June 25th 2012 @ 07:42:23 AM
      Error Date : Monday, June 25th 2012 @ 07:42:23 AM
      Script : http://www.xxxxxx/forum/inlinemod.ph...&postids=14285
      Referrer : http://wwwxxxxxx/forum/inlinemod.php?threadid=8351&p=
      IP Address : nn.nn.nn.nn
      Username : me
      Classname : vB_Database
      MySQL Version : 5.0.95-community-log

      Comment

      • Trevor Hannant
        vBulletin Support
        • Aug 2002
        • 24358
        • 5.7.X

        #4
        That's a completely different error, please start your own thread
        Vote for:

        - Admin Settable Paid Subscription Reminder Timeframe (vB6)
        - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

        Comment

        • Dustin L.
          Senior Member
          • Mar 2011
          • 639
          • 4.2.X

          #5
          Originally posted by doubleclick
          Hello -
          I just got the 1064 error as well while moving a post out of a thread to a new thread. I went back to the thread to see what happened, and it had in fact moved. Not sure what the consequences, if any, of the error.

          Database error in vBulletin 4.2.0:

          Invalid SQL:
          DELETE FROM vbactivitystream
          WHERE
          typeid =
          AND
          contentid IN (SELECT postid FROM vbpost WHERE threadid IN (8351,8359));

          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
          contentid IN (SELECT postid FROM vbpost WHERE threadid IN (8351,8359))' at line 4
          Error Number : 1064
          Request Date : Monday, June 25th 2012 @ 07:42:23 AM
          Error Date : Monday, June 25th 2012 @ 07:42:23 AM
          Script : http://www.xxxxxx/forum/inlinemod.ph...&postids=14285
          Referrer : http://wwwxxxxxx/forum/inlinemod.php?threadid=8351&p=
          IP Address : nn.nn.nn.nn
          Username : me
          Classname : vB_Database
          MySQL Version : 5.0.95-community-log
          Error 1064 is just the code to signify a syntax error. It does not represent the actual problem. As Trevor said, your error is completely different.
          http://quikmsg.net/strtoupper/ - Convert lowercase text and code to all uppercase!
          http://quikmsg.net/strtolower/ - Convert uppercase text and code to all lowercase!

          Comment

          • doubleclick
            Senior Member
            • Jun 2004
            • 218

            #6
            Thanks for the explanation, Dustin. That is more helpful than just being scolded. I had no idea it was a different issue. I was just jumping on the 1064 error.

            Here is the new thread I created:

            Last edited by doubleclick; Sat 7 Jul '12, 3:08am.

            Comment

            • Mark.B
              vBulletin Support
              • Feb 2004
              • 24287
              • 6.0.X

              #7
              Originally posted by doubleclick
              Thanks for the explanation, Dustin. That is more helpful than just being scolded. I had no idea it was a different issue. I was just jumping on the 1064 error.

              Here is the new thread I created:

              https://www.vbulletin.com/forum/show...38#post2312338
              I would just add, please don't see Trevor's post as 'scolding'. The support team say things like that so you can get better support. It gets very confusing for everyone when different queries are in the same thread.

              Sent from my iPhone using Forum Runner
              MARK.B
              vBulletin Support
              ------------
              My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
              My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

              Comment

              • peterh
                New Member
                • Jul 2011
                • 1
                • 4.0.x

                #8
                We have exactly the same error, anybody found any solution? We get this notification every now and then a couple of times.

                Comment

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