1054 errors .... ON clause .... and mySQL 5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Black306
    New Member
    • Sep 2001
    • 19

    1054 errors .... ON clause .... and mySQL 5

    Going from one headache to another........

    after switching to a new hosting company (because my old hosting company kept having mySQL issues), I went with a new hosting company that uses mySQL 5.0.18. Ever since I got all the files transfere and database uploaded, I'm getting errors like this:

    Database error in vBulletin 2.3.0:

    Invalid SQL: SELECT privatemessage.*,touser.username AS tousername,fromuser.username AS fromusername,icon.title AS icontitle,icon.iconpath FROM privatemessage,user AS touser,user AS fromuser LEFT JOIN icon ON icon.iconid=privatemessage.iconid WHERE privatemessage.userid='1' AND folderid=0 AND touser.userid=privatemessage.touserid AND fromuser.userid=privatemessage.fromuserid AND messageread=0 ORDER BY dateline DESC
    mysql error: Unknown column 'privatemessage.iconid' in 'on clause'

    mysql error number: 1054

    Date: Thursday 30th of March 2006 10:59:43 PM
    Script: http://www.wcfords.com/ubb/ubb/usercp.php?
    Referer: http://westcoastmustangs.com/ubb/for...php?forumid=41
    Database error in vBulletin 2.3.0:

    Invalid SQL: SELECT user.*, style.templatesetid
    FROM subscribethread,user,usergroup
    LEFT JOIN style ON (IF(user.styleid=0, 1, user.styleid)=style.styleid)
    WHERE subscribethread.threadid='24488'
    AND subscribethread.userid=user.userid
    AND usergroup.usergroupid=user.usergroupid
    AND user.userid<>'1'
    AND user.usergroupid<>'3'
    AND usergroup.canview = 1
    AND user.lastactivity>'1143782548'
    mysql error: Unknown column 'user.styleid' in 'on clause'

    mysql error number: 1054

    Date: Thursday 30th of March 2006 11:00:05 PM
    Script: http://www.wcfords.com/ubb/ubb/newreply.php
    Referer: http://westcoastmustangs.com/ubb/sho...threadid=24488

    Database error in vBulletin 2.3.0:

    Invalid SQL:
    SELECT DISTINCT post.userid,
    thread.threadid,thread.threadid AS postid,thread.title AS threadtitle,thread.iconid AS threadiconid,thread.replycount,
    thread.views,thread.pollid,thread.open,thread.lastpost AS postdateline,thread.lastpost,thread.lastposter,
    forum.forumid,forum.title AS forumtitle,forum.allowicons,attach,
    thread.postusername AS usrname,
    user.userid AS postuserid,
    threadicon.iconpath AS threadiconpath,threadicon.title AS threadicontitle
    FROM
    thread,forum

    LEFT JOIN icon AS threadicon ON thread.iconid=threadicon.iconid
    LEFT JOIN post ON (thread.threadid = post.threadid AND post.userid = '1' AND post.visible = 1)
    WHERE
    thread.forumid=forum.forumid AND thread.threadid IN (0,24488,24487,24486,24485)
    ORDER BY
    thread.lastpost DESC,thread.lastpost DESC
    mysql error: Unknown column 'user.userid' in 'field list'

    mysql error number: 1054

    Date: Thursday 30th of March 2006 11:02:52 PM
    Script: http://www.wcfords.com/ubb/ubb/searc...earchid=183663
    Referer:

    This has basically rendered my forums useless.

    Now, I've done enough research to pretty much find out that its a problem with mySQL 5 and how vB 2.3.0 is coded.

    Has anyone figured out what changes need to be made so that this will work? ('downgrading' to mySQL 4 is not an option and I like the somplicity of v2.3.0, so I would rather not upgrade to v3.X)
    Derek
    http://www.WestCoastFords.com
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    Sorry, but you won't be able to run vBulletin 2 on MySQL 5. They simply aren't compatible with each other.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • Black306
      New Member
      • Sep 2001
      • 19

      #3
      Originally posted by Colin F
      Sorry, but you won't be able to run vBulletin 2 on MySQL 5. They simply aren't compatible with each other.
      So far I've gotten the avatar, user cp, private messages, and search functions to work. The only problem I'm having now is the reply function.

      Considering I'm no wiz in php and I've gotten most of the fuctions to work at this point seems to me that the problems are not that great and it is possible to do relatively minor repairs to vB2 and get it to work with mySQL 5. Y'all might want to consider a patch to keep us old school vB2 users happy.



      EDIT: This is the error I'm getting when trying to reply

      Database error in vBulletin 2.3.0:

      Invalid SQL: SELECT user.*, style.templatesetid
      FROM subscribethread,user,usergroup
      LEFT JOIN style ON (IF(user.styleid=0, 1, user.styleid)=style.styleid)
      WHERE subscribethread.threadid='24494'
      AND subscribethread.userid=user.userid
      AND usergroup.usergroupid=user.usergroupid
      AND user.userid<>'1'
      AND user.usergroupid<>'3'
      AND usergroup.canview = 1
      AND user.lastactivity>'1143829650'
      mysql error: Unknown column 'user.styleid' in 'on clause'

      mysql error number: 1054

      Date: Friday 31st of March 2006 11:03:12 AM
      Script: http://www.wcfords.com/ubb/ubb/newreply.php
      Referer: http://westcoastmustangs.com/ubb/new...threadid=24494
      Last edited by Black306; Fri 31 Mar '06, 10:04am.
      Derek
      http://www.WestCoastFords.com

      Comment

      • Black306
        New Member
        • Sep 2001
        • 19

        #4
        Reply now works.
        Derek
        http://www.WestCoastFords.com

        Comment

        • Cle
          Member
          • Mar 2005
          • 33

          #5
          I'm having the exact same problems over here. I really want to use a vB2, is there any way you could perhaps share how you were able to fix the error?

          Thanks in advance.

          Comment

          • Black306
            New Member
            • Sep 2001
            • 19

            #6
            Originally posted by Cle
            I'm having the exact same problems over here. I really want to use a vB2, is there any way you could perhaps share how you were able to fix the error?

            Thanks in advance.
            Shoot me an email to [email protected]
            Derek
            http://www.WestCoastFords.com

            Comment

            • Cle
              Member
              • Mar 2005
              • 33

              #7
              Sent, and thanks in advance.

              Comment

              • Zachery
                Former vBulletin Support
                • Jul 2002
                • 59097

                #8
                Please be aware sharing licensed files is agasint the license agreement.

                Realisticly vBulletin 2 is behind on most everything, and theres no real reason anymore to start using it now.

                Why do you want to use vB2 over 3? or even 3.5

                Comment

                • Black306
                  New Member
                  • Sep 2001
                  • 19

                  #9
                  Originally posted by Zachery
                  Please be aware sharing licensed files is agasint the license agreement.
                  Wow. That statement, plus the one from Colin stating it will just NOT work, makes me think more and more you guys are just trying to piss off vB2 so that we can spend more money and upgrade to vB 3.X. And I thought you guys were better than that.

                  Don't worry big brother, no one is sharing any files.




                  Originally posted by Zachery
                  Realisticly vBulletin 2 is behind on most everything, and theres no real reason anymore to start using it now.

                  Why do you want to use vB2 over 3? or even 3.5
                  Why do people like older cars? Why do people like older books? Why do people like antiques? Some people just like the function and style of the older vB.

                  Why even have a vB2 section in this forum is you guys are not going to bother to help?
                  Derek
                  http://www.WestCoastFords.com

                  Comment

                  • Scott MacVicar
                    Former vBulletin Developer
                    • Dec 2000
                    • 13286

                    #10
                    vBulletin 2 releases was stopped well over 18 months ago, you can "fix" this by disabling strict mode within MySQL. Your host will have to do this and should be more than willing. Once thats done vBulletin 2.x will run as before.
                    Scott MacVicar

                    My Blog | Twitter

                    Comment

                    • Colin F
                      Senior Member
                      • May 2004
                      • 17689

                      #11
                      Actually, we are trying to get you to upgrade, but not solely for the money, but simply because technology evolves, bugs are found in older technologies, and it's just a general good idea to upgrade.
                      Best Regards
                      Colin Frei

                      Please don't contact me per PM.

                      Comment

                      • Black306
                        New Member
                        • Sep 2001
                        • 19

                        #12
                        Originally posted by Scott MacVicar
                        vBulletin 2 releases was stopped well over 18 months ago, you can "fix" this by disabling strict mode within MySQL. Your host will have to do this and should be more than willing. Once thats done vBulletin 2.x will run as before.
                        Or you can simply add a few parenthesis here and there and not bother dealing with not-so-friendly hosting companies. Its such a stupidly simple fix, its not even funny.
                        Derek
                        http://www.WestCoastFords.com

                        Comment

                        • Black306
                          New Member
                          • Sep 2001
                          • 19

                          #13
                          Originally posted by Colin F
                          Actually, we are trying to get you to upgrade, but not solely for the money, but simply because technology evolves, bugs are found in older technologies, and it's just a general good idea to upgrade.
                          I worked in QA long enough to know that new technology is not always better. Throw me a copy of the latest vB and I might install it. Otherwise, I'm happy with vB2.
                          Derek
                          http://www.WestCoastFords.com

                          Comment

                          • steveprice
                            Member
                            • Dec 2001
                            • 43

                            #14
                            Originally posted by Black306
                            Or you can simply add a few parenthesis here and there and not bother dealing with not-so-friendly hosting companies. Its such a stupidly simple fix, its not even funny.
                            I'm having the same problem. Would you be kind enough to send me instructions? My e-mail address is [email protected]

                            Many thanks.
                            Steve Price

                            Comment

                            • hawkin
                              New Member
                              • Feb 2002
                              • 16
                              • 2.3.0

                              #15
                              We got the same problem.
                              Does anybody have the modifications that needs to be done?

                              Comment

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