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/Publications/PublicationsModel.php(88): DbConnection->__call('createCommand', Array)
#5 /home/clubpre/public_html/engine/Plugins/Custom/Publications/PublicationsModel.php(88): DbConnection->createCommand('SELECT COUNT(*)...')
#6 /home/clubpre/public_html/engine/Plugins/Custom/Publications/PublicationsController.php(79): PublicationsModel->getHomeItems(Array)
#7 /home/clubpre/public_html/protected/Portlets/PublicationsPortlet.php(22): PublicationsController->getHomeItems(Array)
#8 /home/clubpre/public_html/framework/Web/UI/TControl.php(1270): PublicationsPortlet->onInit(NULL)
#9 /home/clubpre/public_html/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(MainLayout))
#10 /home/clubpre/public_html/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(MainLayout))
#11 /home/clubpre/public_html/framework/Web/UI/TControl.php(1191): TTemplateControl->initRecursive(Object(MainLayout))
#12 /home/clubpre/public_html/framework/Web/UI/TControl.php(1809): TControl->addedControl(Object(PublicationsPortlet))
#13 /home/clubpre/public_html/framework/Collections/TList.php(136): TControlCollection->insertAt(2, Object(PublicationsPortlet))
#14 /home/clubpre/public_html/protected/Layouts/MainLayout.php(135): TList->add(Object(PublicationsPortlet))
#15 /home/clubpre/public_html/protected/Layouts/MainLayout.php(120): MainLayout->addPortlet('Application.Por...', 'PublicationsPor...')
#16 /home/clubpre/public_html/protected/Layouts/MainLayout.php(28): MainLayout->includePortlets()
#17 /home/clubpre/public_html/framework/Web/UI/TControl.php(1270): MainLayout->onInit(NULL)
#18 /home/clubpre/public_html/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Home))
#19 /home/clubpre/public_html/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Home))
#20 /home/clubpre/public_html/framework/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(Home))
#21 /home/clubpre/public_html/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#22 /home/clubpre/public_html/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#23 /home/clubpre/public_html/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#24 /home/clubpre/public_html/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#25 /home/clubpre/public_html/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#26 /home/clubpre/public_html/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Home), Array)
#27 /home/clubpre/public_html/framework/TApplication.php(1095): TPageService->run()
#28 /home/clubpre/public_html/framework/TApplication.php(382): TApplication->runService()
#29 /home/clubpre/public_html/index.php(31): TApplication->run()
#30 {main}
2026-11-24 06:28 Apache PRADO/3.1.6