We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5645
    • 8 Posts
    noob here...Installed modx this morning, was working fine but got this error:

    
    « MODx Parse Error »
    
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error:	mysql_connect(): Too many connections	 
      Error type/ Nr.:	Warning - 2	 
      File:	/home/virtual/site261/fst/var/www/html/manager/includes/extenders/dbapi.mysql.class.inc.php	 
      Line:	85	 
      Line 85 source:	 if (!$this->conn = ($persist ? mysql_pconnect($host, $uid, $pwd) : mysql_connect($host, $uid, $pwd))) {	 
     
    Parser timing
      MySQL:	0.0000 s s	(0 Requests)
      PHP:	0.0194 s s	 
      Total:	0.0194 s s
    
    



    Any ideas?
      • 22303 MODX Staff
      • 10,725 Posts
      This is an error with your server regarding availability of MySQL connections. It means that there are not enough free resources on the machine to allow MODx to get a connection to your database. Sounds like you might need to contact your hosting provider if the problem persists.
        • 7923
        • 4,213 Posts
        You could try disabling the native visitor logging to see if it helps.. also, please try to search the forums before posting (to many connections). Google search works the best, use site:modxcms.com <your keywords> as search term


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."