Announcement

Collapse
No announcement yet.

Problem after Upgrade...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem after Upgrade...

    I upgraded from 3.6.8 to 3.7.4 and everything went great, you can see the site, however when you want to view a forum... you get the following:

    Database error in vBulletin 3.7.4:
    Invalid SQL:
    SELECT
    IF(votenum >= 1, votenum, 0) AS votenum,
    IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
    post.pagetext AS preview,
    thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
    , thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
    hiddencount, deletedcount
    , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
    , deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
    , threadread.readtime AS threadread
    , threadredirect.expires

    FROM limmac_thread AS thread
    LEFT JOIN limmac_deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
    LEFT JOIN limmac_subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
    LEFT JOIN limmac_threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 1)
    LEFT JOIN limmac_post AS post ON(post.postid = thread.firstpostid)

    LEFT JOIN limmac_threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)

    WHERE thread.forumid = 43
    ORDER BY dateline DESC
    LIMIT 5;
    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 ' thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, th' at line 6
    Error Number : 1064
    Request Date : Tuesday, November 18th 2008 @ 01:53:19 PM
    Error Date : Tuesday, November 18th 2008 @ 01:53:19 PM
    Script : http://www.amacny.com/vb/forumdisplay.php?f=5
    Referrer : http://www.amacny.com/vb/
    IP Address : 69.27.229.11
    Username : GTOOOOOH
    Classname : vB_Database
    MySQL Version : 5.0.67-community-log
    www.amacny.com
    sigpic

  • #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 plugins.

    Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

    define('DISABLE_HOOKS', true);


    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


    • #3
      Its a plugin, I'm weeding through them now to figure it out, thanks for this help, and the tremendous speed at which you provided it. Thank you!
      www.amacny.com
      sigpic

      Comment

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