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/Custom/News/NewsModel.php(123): DbConnection->__call('createCommand', Array)
#5 /home/clubpre/public_html/engine/Plugins/Custom/News/NewsModel.php(123): DbConnection->createCommand('SELECT COUNT(*)...')
#6 /home/clubpre/public_html/engine/Plugins/Custom/News/NewsController.php(87): NewsModel->getHomeItems(Array)
#7 /home/clubpre/public_html/protected/Portlets/FooterPortlet.php(48): NewsController->getHomeItems(Array)
#8 /home/clubpre/public_html/protected/Portlets/FooterPortlet.php(23): FooterPortlet->setData()
#9 /home/clubpre/public_html/framework/Web/UI/TControl.php(1270): FooterPortlet->onInit(NULL)
#10 /home/clubpre/public_html/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(MainLayout))
#11 /home/clubpre/public_html/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(MainLayout))
#12 /home/clubpre/public_html/framework/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(MainLayout))
#13 /home/clubpre/public_html/framework/Web/UI/TControl.php(1255): TControl->initRecursive(Object(MainLayout))
#14 /home/clubpre/public_html/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Item))
#15 /home/clubpre/public_html/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Item))
#16 /home/clubpre/public_html/framework/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(Item))
#17 /home/clubpre/public_html/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#18 /home/clubpre/public_html/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#19 /home/clubpre/public_html/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#20 /home/clubpre/public_html/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#21 /home/clubpre/public_html/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#22 /home/clubpre/public_html/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Item), Array)
#23 /home/clubpre/public_html/framework/TApplication.php(1095): TPageService->run()
#24 /home/clubpre/public_html/framework/TApplication.php(382): TApplication->runService()
#25 /home/clubpre/public_html/index.php(31): TApplication->run()
#26 {main}
2026-11-24 05:33 Apache PRADO/3.1.6