MySQL Error after update - DUMMY QUERY

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NLP-er
    Senior Member
    • Aug 2008
    • 145

    [Suite] MySQL Error after update - DUMMY QUERY

    Hi,

    Justu ipdated from vB3.8.x to PS4.1.5 and whole site is down. I got MySQL error:

    Database error in vBulletin 4.1.5:

    Invalid SQL:
    select * from style where styleid = or styleid = 2 ORDER BY styleid ASC;

    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 'or
    styleid = 2 ORDER BY styleid ASC' at line 1
    Error Number : 1064
    As You can see the query is dummy - there is o value for first styleid I have whole plugins system turned off so it cannot be some plugin fault.

    Please help.
    vBulletin Enterprise Translator (vBET) - your forum in 52 languages!
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Invalid SQL errors are almost always related to modified code.

    To troubleshoot this, first 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. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

    Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

    [Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

    Next, disable all products (except vB Blog and vB CMS if you are running the Suite.)

    Admin CP -> Plugins & Products -> Manage Products -> Disable

    Then manually uncheck all plugins that are not for 'vBulletin Blog' and vBulletin CMS' here:

    Admin CP -> Plugins & Products -> Plugin Manager

    Then if you still have this problem, 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

    • NLP-er
      Senior Member
      • Aug 2008
      • 145

      #3
      Thanks - I rechecked everything agai and I was supprised the plugin system is ON. I dissabled it by config.php and It seems that your staff removed it from my config.php file when working on this issue: https://www.vbulletin.com/forum/show...our-attachment.

      Sorry for trouble and thanks
      vBulletin Enterprise Translator (vBET) - your forum in 52 languages!

      Comment

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