We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42397
    • 29 Posts
    Hi,

    I am getting bellow error on my system event. I am using Evo 1.0.14 version


    « MODX Parse Error »
    MODX encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
    PHP error debug
    Error : mysql_connect() [function.mysql-connect]: Too many connections
    ErrorType[num] : WARNING[2]
    File : /home/subnet/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php
    Line : 93
    Source : else $this->conn = mysql_connect($host, $uid, $pwd, true);
    Basic info
    REQUEST_URI : http://www.subnet.ir/network/osi-open-system-interconnection.html
    Referer : http://www.subnet.ir/
    User Agent : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36
    IP : 151.245.117.134
    Benchmarks
    MySQL : 0.0000 s (0 Requests)
    PHP : 0.0136 s
    Total : 0.0136 s
    Memory : 1.87480163574 mb

    Backtrace

    1 DocumentParser->executeParser()
    index.php on line 144
    2 DBAPI->connect()
    manager/includes/document.parser.class.inc.php on line 1496
    3 mysql_connect()
    manager/includes/extenders/dbapi.mysql.class.inc.php on line 93
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      Hello,

      The problem is with your database server, as your error message notes "mysql ... Too many connections". Could you tell us more about your hosting environment?
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 42397
        • 29 Posts
        hi,

        I am using share hosting plan. I am using this plan http://www.a2hosting.com/web-hosting.

        I have hosted other site with the same Evo version but I am not getting this error
          • 1343 ☆ A M B ☆
          • 2,213 Posts
          You might want to reach out to A2 in this instance, as the MySQL server is cutting you off for too many connections.
            Patrick | Server Wrangler
            About Me: Website | Tweets |  MODX Hosting
            • 42397
            • 29 Posts
            they said:

            Hello,

            I am not seeing any server side issues or resource issues for your account that would cause this MySQL error on your website. I did however run an optimization on your MODX database which should help improve its performance. I also did some digging around on the MODX forums and found the below forum post that may help if this issue continues.

            https://forums.modx.com/forums/thread/5616/to-many-connections
              • 1343 ☆ A M B ☆
              • 2,213 Posts
              Hello,

              I find it a little odd that your error is "Too many connections", however there are no server side issues or resource limits involved. Can you tell us more about your site? What extras do you have installed, what if anything is interacting with the database?
                Patrick | Server Wrangler
                About Me: Website | Tweets |  MODX Hosting
                • 42397
                • 29 Posts
                Hi,

                I installed smf and opencart CMS as well . on the other hand always I am not getting Too many connections error. I have copied the other error which is appear on my system events.


                « MODX Parse Error »
                MODX encountered the following error while attempting to parse the requested resource:
                « Failed to create the database connection! »
                Basic info
                REQUEST_URI : http://www.subnet.ir/
                Referer :
                User Agent : Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.19; aggregator:Spinn3r (Spinn3r 3.1); http://spinn3r.com/robot) Gecko/2010040121 Firefox/3.0.19
                IP : 173.192.238.44
                Benchmarks
                MySQL : 0.0000 s (0 Requests)
                PHP : 36.0193 s
                Total : 36.0193 s
                Memory : 1.88017272949 mb

                Backtrace

                1 DocumentParser->executeParser()
                index.php on line 144
                2 DBAPI->connect()
                manager/includes/document.parser.class.inc.php on line 1496
                3 mysql_connect()
                manager/includes/extenders/dbapi.mysql.class.inc.php on line 93