DB error when viewing PMs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 1QuickSI
    Senior Member
    • Oct 2001
    • 878
    • 4.2.5

    DB error when viewing PMs

    Just started happening...
    Any ideas?

    Code:
    Database error in vBulletin 3.7.2:
    Invalid SQL:
    SELECT
        *
        FROM moderator
        WHERE forumid= AND userid=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 'AND userid=5' at line 4
    Error Number  : 1064
    Request Date  : Wednesday, August 13th 2008 @ 10:35:12 AM
    Error Date    : Wednesday, August 13th 2008 @ 10:35:13 AM
    Script        : [URL]http://www.domainname.com/forums/private.php?do=showpm&pmid=20[/URL]
    Referrer      : [URL]http://www.domainname.com/forums/private.php[/URL]
    IP Address    : 208.xxx.xxx.xxx
    Username      : Steven
    Classname     : vB_Database
    MySQL Version : 4.1.22-standard
    -----------------------------------------------------------
    Running custom version of vBulletin based on v4.2.5
    PHP 7.4.14 :: MariaDB 10.5.8
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Invalid SQL errors are almost always related to modified code. To troubleshoot this, the first thing you need to do is remove any third-party hacks or 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

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎