vBulletin Database Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • al_313_al
    New Member
    • May 2007
    • 21
    • 3.6.x

    vBulletin Database Error

    hi i keep receiving emails saying there is a database error

    this is what is wriiten in the email:


    > Database error in vBulletin 3.7.4:
    >
    > Invalid SQL:
    > SELECT COUNT(threadid) AS total FROM thread WHERE postuserid=;
    >
    > 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 '' at line 1
    > Error Number : 1064
    > Request Date : Wednesday, November 26th 2008 @ 11:11:59 PM
    > Error Date : Wednesday, November 26th 2008 @ 11:11:59 PM
    > Script : http://www.mysite.com/vb/showthread.php?t=13146
    > Referrer :
    > IP Address :


    i dont understand whats wrong exactly



    i hope someone can tell me what to do

    cheers
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    That query looks like it's from a modification (at least it's not in 3.7.3 that I can find). Try disabling your plugins and see if you still get the error:
    Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

    PHP Code:
    define('DISABLE_HOOKS'true); 

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment

    • al_313_al
      New Member
      • May 2007
      • 21
      • 3.6.x

      #3
      i also have a problem with the forum style, all of the writting is in black and white, and no pictures appear

      i tried changing the style to another style i have, but i still have the same problem

      is someone trying to hack in?

      my forum has been hacked several times
      and i have just updated it


      can anyone help?

      Comment

      • al_313_al
        New Member
        • May 2007
        • 21
        • 3.6.x

        #4
        Originally posted by Lynne
        That query looks like it's from a modification (at least it's not in 3.7.3 that I can find). Try disabling your plugins and see if you still get the error:
        Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

        PHP Code:
        define('DISABLE_HOOKS'true); 


        thanks a million

        Comment

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