TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[42000] [1203] User clubpre_clubpr already has more than 'max_user_connections' active connections

Source File

/home/clubpre/public_html/framework/Data/TDbConnection.php (180)

0169:                 $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0170:                                     $this->getPassword(),$this->_attributes);
0171:                 // This attribute is only useful for PDO::MySql driver. 
0172:                 // Ignore the warning if a driver doesn't understand this.
0173:                 @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0174:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0175:                 $this->_active=true;
0176:                 $this->setConnectionCharset();
0177:             }
0178:             catch(PDOException $e)
0179:             {
0180: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0181: } 0182: } 0183: } 0184: 0185: /** 0186: * Closes the currently active DB connection. 0187: * It does nothing if the connection is already closed. 0188: */ 0189: protected function close() 0190: { 0191: $this->_pdo=null; 0192: $this->_active=false;

Stack Trace

#0 /home/clubpre/public_html/framework/Data/TDbConnection.php(153): TDbConnection->open()
#1 /home/clubpre/public_html/framework/TComponent.php(135): TDbConnection->setActive(true)
#2 /home/clubpre/public_html/engine/Kernel/DbConnection.php(109): TComponent->__set('Active', true)
#3 /home/clubpre/public_html/engine/Kernel/DbConnection.php(84): DbConnection->getDatabaseConnection()
#4 /home/clubpre/public_html/engine/Plugins/Extended/AUsers/AUsersModel.php(424): DbConnection->__call('createCommand', Array)
#5 /home/clubpre/public_html/engine/Plugins/Extended/AUsers/AUsersModel.php(424): DbConnection->createCommand('SELECT email,bu...')
#6 /home/clubpre/public_html/engine/Plugins/Extended/AUsers/AUsersController.php(232): AUsersModel->getUserProfilePersonal('11', Array)
#7 /home/clubpre/public_html/protected/Pages/News/Item.php(74): AUsersController->getUserProfilePersonal('11', Array)
#8 /home/clubpre/public_html/protected/Pages/News/Item.php(24): Item->setData()
#9 /home/clubpre/public_html/framework/Web/UI/TControl.php(1270): Item->onInit(NULL)
#10 /home/clubpre/public_html/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#11 /home/clubpre/public_html/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#12 /home/clubpre/public_html/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#13 /home/clubpre/public_html/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#14 /home/clubpre/public_html/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#15 /home/clubpre/public_html/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Item), Array)
#16 /home/clubpre/public_html/framework/TApplication.php(1095): TPageService->run()
#17 /home/clubpre/public_html/framework/TApplication.php(382): TApplication->runService()
#18 /home/clubpre/public_html/index.php(31): TApplication->run()
#19 {main}
2026-11-24 03:25 Apache PRADO/3.1.6