TPhpErrorException

Description

[Warning] mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections (@line 355 in file /home/platne/rnc/public_html/wyspagier24/libs/adodb/drivers/adodb-mysql.inc.php).

Source File

/home/platne/rnc/public_html/wyspagier24/libs/adodb/adodb.inc.php (414)

0403:     function Connect($argHostname = "", $argUsername = "", $argPassword = "", $argDatabaseName = "", $forceNew = false) 
0404:     {
0405:         if ($argHostname != "") $this->host = $argHostname;
0406:         if ($argUsername != "") $this->user = $argUsername;
0407:         if ($argPassword != "") $this->password = $argPassword; // not stored for security reasons
0408:         if ($argDatabaseName != "") $this->database = $argDatabaseName;        
0409:         
0410:         $this->_isPersistentConnection = false;    
0411:         if ($forceNew) {
0412:             if ($rez=$this->_nconnect($this->host, $this->user, $this->password, $this->database)) return true;
0413:         } else {
0414: if ($rez=$this->_connect($this->host, $this->user, $this->password, $this->database)) return true;
0415: } 0416: if (isset($rez)) { 0417: $err = $this->ErrorMsg(); 0418: if (empty($err)) $err = "Connection error to server '$argHostname' with user '$argUsername'"; 0419: $ret = false; 0420: } else { 0421: $err = "Missing extension for ".$this->dataProvider; 0422: $ret = 0; 0423: } 0424: if ($fn = $this->raiseErrorFn) 0425: $fn($this->databaseType,'CONNECT',$this->ErrorNo(),$err,$this->host,$this->database,$this); 0426:

Stack Trace

#0 /home/platne/rnc/public_html/wyspagier24/libs/adodb/drivers/adodb-mysql.inc.php(355): PradoBase::phpErrorHandler(2, 'mysql_connect()...', '/home/platne/rn...', 355, Array)
#1 /home/platne/rnc/public_html/wyspagier24/libs/adodb/adodb.inc.php(414): ADODB_mysql->_connect('sql7.lh.pl', 'rnc', '4y1qfupz', false, 0)
#2 /home/platne/rnc/public_html/wyspagier24/protected/modules/dataModule.php(95): ADOConnection->Connect('sql7.lh.pl', 'rnc', '4y1qfupz', 'rnc_wyspa')
#3 /home/platne/rnc/public_html/wyspagier24/protected/modules/dataModule.php(81): dataModule->getDatabaseConnection('sql7.lh.pl', 'rnc', '4y1qfupz', 'rnc_wyspa')
#4 /home/platne/rnc/public_html/wyspagier24/protected/modules/dataModule.php(525): dataModule->__call()
#5 /home/platne/rnc/public_html/wyspagier24/protected/modules/dataModule.php(525): dataModule->Prepare('Prepare', Array)
#6 /home/platne/rnc/public_html/wyspagier24/protected/pages/files/viewFile.php(18): dataModule->queryFileByID('SELECT f.id,???...')
#7 /home/platne/rnc/public_html/wyspagier24/libs/prado/Web/UI/TControl.php(1179): viewFile->onInit(1545)
#8 /home/platne/rnc/public_html/wyspagier24/libs/prado/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#9 /home/platne/rnc/public_html/wyspagier24/libs/prado/Web/UI/TTemplateControl.php(239): TCompositeControl->initRecursive(NULL)
#10 /home/platne/rnc/public_html/wyspagier24/libs/prado/Web/UI/TPage.php(182): TTemplateControl->initRecursive(NULL)
#11 /home/platne/rnc/public_html/wyspagier24/libs/prado/Web/UI/TPage.php(173): TPage->processNormalRequest()
#12 /home/platne/rnc/public_html/wyspagier24/libs/prado/Web/Services/TPageService.php(458): TPage->run(Object(THtmlWriter))
#13 /home/platne/rnc/public_html/wyspagier24/libs/prado/TApplication.php(988): TPageService->run(Object(THtmlWriter))
#14 /home/platne/rnc/public_html/wyspagier24/libs/prado/TApplication.php(346): TApplication->runService()
#15 /home/platne/rnc/public_html/wyspagier24/index.php(36): TApplication->run()
#16 {main}
2016-02-09 18:44 Apache PRADO/3.0.2