Database error in admin CP -- rest of forum works fine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • timelord726
    Member
    • Mar 2005
    • 78
    • 3.6.x

    Database error in admin CP -- rest of forum works fine

    Hi everyone,

    My Admin CP has very strangely and suddenly stopped working due to a database error. I can access and use the rest of my forum as if nothing were happening, so my users haven't noticed a change yet. But whenever I click the Admin CP link, it takes me to a page that says:

    Database error

    The DannyStewart.com Forums database has encountered a problem.
    Please try the following:

    * Load the page again by clicking the Refresh button in your web browser.
    * Open the www.dannystewart.com home page, then try to open another page.
    * Click the Back button to try another link.

    The www.dannystewart.com forum technical staff have been notified of the error, though you may contact them if the problem persists.

    We apologise for any inconvenience.
    Can anyone help me track down whatever is causing this problem and attempt to remedy it? Thanks in advance for any assistance!
  • Paul M
    Former Lead Developer
    vB.Com & vB.Org
    • Sep 2004
    • 9886

    #2
    You need to post the actual SQL error (sent to you in the e-mail).
    Last edited by Paul M; Tue 19 Sep '06, 8:21pm.
    Baby, I was born this way

    Comment

    • timelord726
      Member
      • Mar 2005
      • 78
      • 3.6.x

      #3
      Hello again, Paul! You just answered my question over at vBulletin.org.

      Unfortunately I have received no such email... outgoing email has always been spotty on this server. Is there another way of checking what the error is?

      Comment

      • Robbed
        Member
        • Oct 2005
        • 98
        • 4.2.X

        #4
        Check the config file to see what email it's setup to send to.

        Comment

        • Paul M
          Former Lead Developer
          vB.Com & vB.Org
          • Sep 2004
          • 9886

          #5
          Right click on the error page and view the source, the error should be in there as well.
          Baby, I was born this way

          Comment

          • timelord726
            Member
            • Mar 2005
            • 78
            • 3.6.x

            #6
            Yup, sure enough, thanks. Here are the details:

            Code:
            <!--
            Database error in vBulletin 3.6.1:
            
            Invalid SQL:
            DELETE FROM phrase WHERE (varname='welcomepm' AND phrasetypeid=4000) OR (varname='welcomepm' AND phrasetypeid=3000) OR (varname='setting_welcomepmuserid_desc' AND phrasetypeid=5000) OR (varname='setting_welcomepmuserid_title' AND phrasetypeid=5000);
            
            MySQL Error  : Unknown column 'phrasetypeid' in 'where clause'
            Error Number : 1054
            Date         : Wednesday, September 20th 2006 @ 12:22:41 AM
            Script       : http://www.dannystewart.com/forums/admincp/
            Referrer     : 
            IP Address   : 69.138.7.95
            Username     : 
            Classname    : vB_Database_MySQLi
            -->
            EDIT: Oh, and Robbed, thanks for trying to help, but it's the server's fault, not vBulletin's.

            Comment

            • Robbed
              Member
              • Oct 2005
              • 98
              • 4.2.X

              #7
              Was the welcome pm hack installed recently?

              You can try disabling all plugins for now until someone can help you out,


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

              define('DISABLE_HOOKS', true);

              Comment

              • timelord726
                Member
                • Mar 2005
                • 78
                • 3.6.x

                #8
                I actually was just trying to remove the welcome PM hack (along with all my other plugins, trying to revert as close to a stock install as possible)... that may have done it. I added the line as you suggested and it's coming up properly now. I'll see what I can do about removing the plugins.

                EDIT: I actually chopped a few plugins out of my SQL database recently so I can no longer remove it properly through the admin CP. Can I remove what it's left behind manually?

                EDIT #2: Also, another important question -- I am about to transfer this entire database to a new server. Is there a way I can make sure issues like this will not repeat themselves on the new installation after importing the database? (I guess what I'm really asking is, is this a database issue, and if so, what do I need to take out of the database in order to remove all traces of it?)
                Last edited by timelord726; Tue 19 Sep '06, 8:43pm.

                Comment

                • Paul M
                  Former Lead Developer
                  vB.Com & vB.Org
                  • Sep 2004
                  • 9886

                  #9
                  Try reinstalling the welcome pm product and then uninstalling it properly (via the acp).
                  Baby, I was born this way

                  Comment

                  • timelord726
                    Member
                    • Mar 2005
                    • 78
                    • 3.6.x

                    #10
                    There may be other plugins left behind too. I don't suppose there's any easy way for me to check a couple places and see if anything's been added that shouldn't be?

                    Comment

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

                      #11
                      This error means that you did not upload all the 3.6.1 files or you have an add-on that is asking for a field that does not exist in 3.6.1.

                      Reupload all the original vB 3.6.1 non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Then if you still have this problem, disable your plugins.
                      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

                      • timelord726
                        Member
                        • Mar 2005
                        • 78
                        • 3.6.x

                        #12
                        Okay, I think things are all but sorted now. Thanks everyone for the help!

                        Comment

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