Unable to log into admincp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nickwagner
    New Member
    • Nov 2011
    • 9

    Unable to log into admincp

    When I try to log into admincp, I get a database error. Thanks for your help with this.
    <!--
    Database error in vBulletin :
    mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
    /home/teamrcia/public_html/learningcenter/forum/includes/class_core.php on line 317
    MySQL Error :
    Error Number :
    Request Date : Saturday, December 3rd 2016 @ 12:34:58 PM
    Error Date : Saturday, December 3rd 2016 @ 12:34:58 PM
    Script : http://teamrcia.com/learningcenter/forum/admincp/
    Referrer :
    IP Address : 12.104.145.68
    Username :
    Classname : vB_Database
    MySQL Version :
    Stack Trace:
    #0 vB_Database-&gt;halt() called in [path]/includes/class_core.php on line 5661
    #1 catch_db_error() called in on line
    #2 mysql_connect() called in [path]/includes/class_core.php on line 317
    #3 vB_Database-&gt;db_connect() called in [path]/includes/class_core.php on line 282
    #4 vB_Database-&gt;connect() called in [path]/includes/init.php on line 189
    #5 require_once([path]/includes/init.php) called in [path]/admincp/global.php on line 35
    #6 require_once([path]/admincp/global.php) called in [path]/admincp/index.php on line 24
    -->
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24288
    • 6.0.X

    #2
    Edit your includes/config.php file and change the database type from MySQL to MySQLi

    Also, make sure your version of vBulletin is up to date. You should be running 4.2.3 and at least php 5.4.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • nickwagner
      New Member
      • Nov 2011
      • 9

      #3
      Thanks. I made that change, and now I get this error:

      Unable to add cookies, header already sent.
      File: /home/teamrcia/public_html/learningcenter/forum/includes/config.php
      Line: 1

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24288
        • 6.0.X

        #4
        You've probably edited the file in Windows Notepad. That won't work. You need to use a proper text editor, like Notepad++

        You'll need to download Notepad++, then go back to the original configure.php file and re-edit it. If you no longer have a copy you'll need to make an entirely new one from the blank copy in the download package.

        Windows Notepad is not suitable for editing php files, it adds invisible characters which cause the error you're seeing.

        Oops, looks like the page is lost. Start your website on the cheap.
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • BirdOPrey5
          Senior Member
          • Jul 2008
          • 9613
          • 5.6.3

          #5
          Also the line will be:

          PHP Code:
           $config['Database']['dbtype'] = 'mysqli'
          (All lowercased)

          Comment

          • Mark.B
            vBulletin Support
            • Feb 2004
            • 24288
            • 6.0.X

            #6
            Thanks Joe, I'm on an iPad and they do rather do as they please when it comes to case!
            MARK.B
            vBulletin Support
            ------------
            My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
            My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

            Comment

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

              #7
              Originally posted by Mark.B
              Also, make sure your version of vBulletin is up to date. You should be running 4.2.3 and at least php 5.4.
              That error indicates they are running at least php 5.5 Ideally they should run 4.2.4 for that.

              Baby, I was born this way

              Comment

              • nickwagner
                New Member
                • Nov 2011
                • 9

                #8
                Thanks for all your help. Problem solved.

                Comment

                Related Topics

                Collapse

                Working...