Please help with class_core.php Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmx07
    Member
    • Oct 2013
    • 45
    • 4.2.X

    Please help with class_core.php Error

    Hello,

    Two days ago I started getting the following MySQL database error:

    Database error in vBulletin :

    mysqli_real_connect(): (HY000/2002): No such file or directory
    public_html/includes/class_core.php on line 1351

    Script : css.php?styleid=261&langid=1&d=1507982312&td=ltr&sheet=bbcode.css,editor.css,popupmenu.css ,reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css,
    Classname : vB_Database_MySQLi
    MySQL Version :

    Stack Trace:

    #0 vB_Database->halt() called in [path]/includes/class_core.php on line 5948
    #1 catch_db_error() called in on line
    #2 mysqli_real_connect() called in [path]/includes/class_core.php on line 1351
    #3 vB_Database_MySQLi->db_connect() called in [path]/includes/class_core.php on line 280
    #4 vB_Database->connect() called in [path]/includes/init.php on line 212
    #5 require_once([path]/includes/init.php) called in [path]/includes/class_bootstrap.php on line 101
    #6 vB_Bootstrap->init() called in [path]/includes/class_bootstrap.php on line 72
    #7 vB_Bootstrap->bootstrap() called in [path]/global.php on line 26
    #8 require_once([path]/global.php) called in [path]/css.php on line 72

    Any ideas what may be causing this?
  • dmx07
    Member
    • Oct 2013
    • 45
    • 4.2.X

    #2
    Error continues to bug us for a whole week now can someone help please?

    Comment

    • djbaxter
      Senior Member
      • Aug 2006
      • 1418
      • 4.2.5

      #3
      You haven't indicated which version of vBulletin and which version of PHP you're using.

      With vBulletin 4.2.5, line 1351 in /includes/class_core.php is this:

      Code:
      $connect = $this->functions['connect']($link, $servername, $username, $password, '', $port);
      and line 5948 is

      Code:
      $db->halt("$errstr\r\n$errfile on line $errline");
      which is part of

      Code:
      function catch_db_error($errno, $errstr, $errfile, $errline)
      both of which would suggest your forum can't connect to your database for some reason.
      Last edited by djbaxter; Sat 11 Nov '17, 4:20pm.
      Psychlinks Web Services Affordable Web Design & Site Management
      Specializing in Small Businesses and vBulletin/Xenforo Forums

      Comment

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

        #4
        That's precisely what it is....the software momentarily cannot see the database.
        You should speak to your host.
        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

        • dmx07
          Member
          • Oct 2013
          • 45
          • 4.2.X

          #5
          Thank you guys for your replies. We are running vbulletin 4.2.5 PHP7.

          Comment

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

            #6
            You do need to speak to your host. The connection to the database is being lost for whatever reason.
            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

            • dmx07
              Member
              • Oct 2013
              • 45
              • 4.2.X

              #7
              They haven't a clue as to why this happens almost two weeks now. But your timely response here is appreciated. Anything else I should point out to them, where to look perhaps?

              Most hosts often refuse to go into this leaving our vbulletin users with database error messages. Sad situation.

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 73981

                #8
                It usually happens on overloaded servers where MySQL cannot open additional connections. You share that database server with up to 1000 other customers. As an example, GoDaddy is notorious for overloading servers and setting up ridiculous timeouts to try and mitigate issues with their cheap unlimited plans.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment

                • dmx07
                  Member
                  • Oct 2013
                  • 45
                  • 4.2.X

                  #9
                  Good evening Wayne,

                  We are on dedicated server.

                  Comment

                  • Wayne Luke
                    vBulletin Technical Support Lead
                    • Aug 2000
                    • 73981

                    #10
                    Then your server administrator should review the MySQL logs to see where the bottleneck is. If you aren't logging MySQL operations, there are instructions to do so on the MySQL website.
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud demonstration site.
                    vBulletin 5 API

                    Comment

                    • dmx07
                      Member
                      • Oct 2013
                      • 45
                      • 4.2.X

                      #11
                      Thank you working on that right away.

                      Comment

                      • dmx07
                        Member
                        • Oct 2013
                        • 45
                        • 4.2.X

                        #12
                        Catch 22. My host says the problem is with vbulletin and they refuse to cooperate. What can I do?

                        Comment

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

                          #13
                          Originally posted by dmx07
                          Catch 22. My host says the problem is with vbulletin and they refuse to cooperate. What can I do?
                          Find a better host.

                          Hosts *always* say this. If they think the problem is with vBulletin, ask them to explain (a) why they think this, and (b) why the software is installed on multiple thousands of sites without the problem ever occurring. Ask them what they see in the logs when the issue occurs, and ask them what it is about those logs that suggest it's a software problem.

                          This response from hosts has been getting more and more common in recent years. It generally translates as "our server is over-sold / under-resourced / badly configured, and so we're going to blame the software you're trying to use."
                          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

                          • Wayne Luke
                            vBulletin Technical Support Lead
                            • Aug 2000
                            • 73981

                            #14
                            Originally posted by dmx07
                            Catch 22. My host says the problem is with vbulletin and they refuse to cooperate. What can I do?
                            You said you were on a dedicated server. This means you are knowledgeable about running a server and your specific OS or pay someone for that knowledge. It also means that you have full access to the machine and should be able to run your own logs and make modifications. Without logs, there is no way to even know what is causing the problem. Server or vBulletin is irrelevant without logs.
                            Translations provided by Google.

                            Wayne Luke
                            The Rabid Badger - a vBulletin Cloud demonstration site.
                            vBulletin 5 API

                            Comment

                            • dmx07
                              Member
                              • Oct 2013
                              • 45
                              • 4.2.X

                              #15
                              Damn you both on a roll and very quick tonight. I appreciate both responses and your time looking into this. Yes we are on a dedicated server host guys said they do not see anything in the mysql logs that would indicate an issue related to mysql. I first started using vbulletin when I was a teenager but this error really baffles me so I beg for help.

                              Comment

                              Related Topics

                              Collapse

                              Working...