SQL Errors after upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robertorg
    New Member
    • Jun 2005
    • 13

    SQL Errors after upgrade

    Hi,

    After update to the new version I'm reveiveing these SQL errors throught mail:

    Database error in vBulletin 3.5.1:

    Invalid SQL:

    SELECT filedata, dateline, filename
    FROM customprofilepic
    WHERE userid = 148 AND visible = 1;

    MySQL Error : Unknown column 'filedata' in 'field list'
    Error Number : 1054

    ###################

    Database error in vBulletin 3.5.1:

    Invalid SQL:
    SELECT * FROM subscription ORDER BY displayorder;

    MySQL Error : Unknown column 'displayorder' in 'order clause'
    Error Number : 1054

    ###################

    Database error in vBulletin :

    Link-ID == false, connect failed
    mysql error:

    mysql error number: 0

    ###################

    What can I do?

    Thanks for all.
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    To troubleshoot this, remove any hacks and disable your plugins, then see if you still have this problem.

    If so, 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. 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.


    Comment

    • robertorg
      New Member
      • Jun 2005
      • 13

      #3
      Hi Steve,

      I thing that it isn't for hacks, It's because I had several problems with SQL Queries on the upgrade from the latest versions, I had to make manual changes to continue installing. (The only hacks I have are vbadvanced are a DC Rewrite (it shouldn't affect for queries).

      I received another SQL error:

      Invalid SQL:
      SELECT * FROM subscription ORDER BY displayorder;

      MySQL Error : Unknown column 'displayorder' in 'order clause'

      It there any way to check the database structure and FIX it?

      Thanks for all.

      Comment

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

        #4
        You can't just change queries during the upgrade process and expect it to work. You can try running this query to create that missing field:

        ALTER TABLE subscription ADD displayorder SMALLINT UNSIGNED NOT NULL DEFAULT '1';
        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...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎