TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[HY000] [1226] User 'ka012100' has exceeded the 'max_user_connections' resource (current value: 10)

Source File

/home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Data/TDbConnection.php (197)

0186:                 $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0187:                                     $this->getPassword(),$this->_attributes);
0188:                 // This attribute is only useful for PDO::MySql driver.
0189:                 // Ignore the warning if a driver doesn't understand this.
0190:                 @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0191:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0192:                 $this->_active=true;
0193:                 $this->setConnectionCharset();
0194:             }
0195:             catch(PDOException $e)
0196:             {
0197: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0198: } 0199: } 0200: } 0201: 0202: /** 0203: * Closes the currently active DB connection. 0204: * It does nothing if the connection is already closed. 0205: */ 0206: protected function close() 0207: { 0208: $this->_pdo=null; 0209: $this->_active=false;

Stack Trace

#0 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Data/TDbConnection.php(170): TDbConnection->open()
#1 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Data/SqlMap/Statements/TPreparedCommand.php(31): TDbConnection->setActive(true)
#2 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Data/SqlMap/Statements/TMappedStatement.php(377): TPreparedCommand->create(Object(TSqlMapManager), Object(TDbConnection), Object(TSqlMapSelect), Array)
#3 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Data/SqlMap/TSqlMapGateway.php(73): TMappedStatement->executeQueryForObject(Object(TDbConnection), Array, NULL)
#4 /home/do2531800/multi/offroadwebeu/web/protected/pages/cestovanie/clanky_cestovanie.php(15): TSqlMapGateway->queryForObject('countCestovanie...', Array)
#5 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TControl.php(1279): clanky_cestovanie->onInit(NULL)
#6 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#7 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#8 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TPage.php(214): TTemplateControl->initRecursive()
#9 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TPage.php(203): TPage->processNormalRequest(Object(THtmlWriter))
#10 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#11 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/Web/Services/TPageService.php(470): TPageService->runPage(Object(clanky_cestovanie), Array)
#12 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/TApplication.php(1189): TPageService->run()
#13 /home/do2531800/multi/offroadwebeu/prado_3.2.1/framework/TApplication.php(406): TApplication->runService()
#14 /home/do2531800/multi/offroadwebeu/web/index.php(24): TApplication->run()
#15 {main}
2024-06-28 23:01 Apache PRADO/3.2.1