4.0.2 upgrade database errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smoke10010
    New Member
    • Jan 2006
    • 14
    • 3.5.x

    [CMS] 4.0.2 upgrade database errors

    Hello,

    I did the 4.0.2 upgrade, lost all my templates and reverted everything back to the basics and this error won't go away:

    Database error in vBulletin 4.0.2:

    Invalid SQL:

    SELECT cacheid, data, expires, locktime, serialized
    FROM cache
    WHERE cacheid 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 3
    Error Number : 1064
    Request Date : Saturday, February 20th 2010 @ 05:16:52 PM
    Error Date : Saturday, February 20th 2010 @ 05:16:52 PM
    Script : http://onhercam.com/network/
    Referrer : http://onhercam.com/network/
    IP Address : 173.32.90.123
    Username : Staff
    Classname : vB_Database
    MySQL Version : 5.0.58-log4



    Any idea what would be causing this?
  • smoke10010
    New Member
    • Jan 2006
    • 14
    • 3.5.x

    #2
    The only 2 products I have installed at VBulletin Blog and the CMS

    Comment

    • smoke10010
      New Member
      • Jan 2006
      • 14
      • 3.5.x

      #3
      SELECT cacheid, data, expires, locktime, serialized
      FROM cache
      WHERE cacheid in ();

      Is there a way to just completely disable the cache so the forums will at least load? Seems like it can't figure what to use as the cacheid in the brackets and it's leaving it blank.

      Comment

      • smoke10010
        New Member
        • Jan 2006
        • 14
        • 3.5.x

        #4
        I've narrowed it down to this:

        /vb/cache/db.php line 154

        $rst = vB::$db->query_read_slave("
        SELECT cacheid, data, expires, locktime, serialized
        FROM " . TABLE_PREFIX . "cache
        WHERE cacheid in (" . implode(',' , $cacheids) . ")"
        );

        Comment

        • smoke10010
          New Member
          • Jan 2006
          • 14
          • 3.5.x

          #5
          And finally.. this may have fixed it.

          1. I removed " WHERE cacheid in (" . implode(',' , $cacheids) . ") " so the new mysql statement came out like this:

          $rst = vB::$db->query_read_slave("
          SELECT cacheid, data, expires, locktime, serialized
          FROM " . TABLE_PREFIX . "cache"
          );

          I then completely reloaded the website which may have completely refreshed the cache.

          Then I added the code back in and reset everything back to it's original form.

          The forum started working properly and things are loading but we're missing a lot of the old data... at least the forums load... I'm not sure if this is a real solution or if it will happen again. An admin or someone with more experience may be able to comment further.

          Comment

          • smoke10010
            New Member
            • Jan 2006
            • 14
            • 3.5.x

            #6
            And on a final note... if you do use this "fix" ... you will need to republish all your articles if you want them to show up in the site search which affects the latest articles, etc.
            Last edited by smoke10010; Sat 20 Feb '10, 5:42pm.

            Comment

            • Destron
              Senior Member
              • Dec 2009
              • 257

              #7
              How terrible that nobody came to help, this is why I'm holding off on upgrading
              Last edited by Destron; Sat 20 Feb '10, 8:31pm.

              Comment

              • Zachery
                Former vBulletin Support
                • Jul 2002
                • 59097

                #8
                I would advise if you're not getting support on the forums to start a support ticket.

                Comment

                • crazyace
                  Member
                  • Dec 2009
                  • 87
                  • 3.8.x

                  #9
                  So was this ever fixed?

                  Comment

                  • shiaforums
                    Member
                    • Aug 2010
                    • 42
                    • 4.0.x

                    #10
                    Database error in vBulletin 4.1.0:

                    Invalid SQL:

                    SELECT data, expires, locktime, serialized
                    FROM cache
                    WHERE cacheid = 'vb_types.types';

                    MySQL Error : MySQL server has gone away
                    Error Number : 2006
                    Request Date : Saturday, December 18th 2010 @ 12:24:55 PM
                    Error Date : Saturday, December 18th 2010 @ 12:25:06 PM
                    Script : **********************************
                    Referrer : http://***********************
                    IP Address : **********
                    Username : ******
                    Classname : vB_Database
                    MySQL Version :

                    Comment

                    • Steve Machol
                      Former Customer Support Manager
                      • Jul 2000
                      • 154488

                      #11
                      This is a server issue. You'll need to contact your host about this. Here are the reasons for the MySQL server going away:



                      Also from the MySQL site:

                      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...