Announcement

Collapse
No announcement yet.

Please help with class_core.php Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

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

    Comment


    • #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


      • #4
        That's precisely what it is....the software momentarily cannot see the database.
        You should speak to your host.
        MARK.B | vBULLETIN SUPPORT

        TalkNewsUK - My vBulletin 5.6.3 Demo
        AdminAmmo - My Cloud Demo

        Comment


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

          Comment


          • #6
            You do need to speak to your host. The connection to the database is being lost for whatever reason.
            MARK.B | vBULLETIN SUPPORT

            TalkNewsUK - My vBulletin 5.6.3 Demo
            AdminAmmo - My Cloud Demo

            Comment


            • #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


              • #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 - Full / Mobile
                Vote for your favorite feature requests and the bugs you want to see fixed.

                Comment


                • #9
                  Good evening Wayne,

                  We are on dedicated server.

                  Comment


                  • #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 - Full / Mobile
                    Vote for your favorite feature requests and the bugs you want to see fixed.

                    Comment


                    • #11
                      Thank you working on that right away.

                      Comment


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

                        Comment


                        • #13
                          Originally posted by dmx07 View Post
                          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

                          TalkNewsUK - My vBulletin 5.6.3 Demo
                          AdminAmmo - My Cloud Demo

                          Comment


                          • #14
                            Originally posted by dmx07 View Post
                            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 - Full / Mobile
                            Vote for your favorite feature requests and the bugs you want to see fixed.

                            Comment


                            • #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

                              • Paul.
                                Database Error
                                by Paul.
                                Hi,

                                Literally no idea why we're getting problem after problem since upgrading to vB5.
                                Can anyone let me know what happens here? I am not sure if I'm pasting sensitive information. Mods,...
                                Mon 28 Mar '16, 7:41am
                              • vb_nils
                                Mysql error with Sphinx enabled
                                by vb_nils
                                Hello,

                                Since a long time I get sporadic errors emails indicating "Database Error".
                                I finally have time to investigate, and it seems to happen when a user is writting an answer
                                ...
                                Sun 25 Oct '15, 12:06am
                              Working...
                              X