CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1129] Host '172.31.32.82' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

/var/www/framework/db/CDbConnection.php(382)

370                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371             try
372             {
373                 Yii::trace('Opening DB connection','system.db.CDbConnection');
374                 $this->_pdo=$this->createPdoInstance();
375                 $this->initConnection($this->_pdo);
376                 $this->_active=true;
377             }
378             catch(PDOException $e)
379             {
380                 if(YII_DEBUG)
381                 {
382                     throw new CDbException('CDbConnection failed to open the DB connection: '.
383                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
384                 }
385                 else
386                 {
387                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#7
+
 /var/www/html/themes/siteOfertas/views/layouts/header.php(19): CActiveRecord->findAll("oferta = 1")
14 ?>    
15 <div class="w-hidden-main w-hidden-medium w-hidden-small nav-menu-left">
16     <div class="logo-sidebar">
17         <a href="<?php echo Yii::app()->params['link']['ofertas']['home']; ?>" ></a>
18     </div>
19     <?php $cidades = Cidade::model()->findAll('oferta = 1'); 
20     if(sizeof($cidades) > 1){?>
21     <div data-delay="0" data-ix="new-interaction" class="w-dropdown w-hidden-tiny dropdown-cidade div-cidade" style="display: block !important;">
22         <div class="pin-cidade"></div>
23         <div class="w-dropdown-toggle dropdown-toggle-cidade" style="padding: 0px; width: 100%;">
24             <div class="link-sidebar">Cidade: <?php echo Yii::app()->user->getState('cidade_nome'); ?></div>
#11
+
 /var/www/html/themes/siteOfertas/views/layouts/default.php(31): CController->renderPartial("//layouts/header", array("folderBase" => "/themes/siteOfertas", "currentController" => "site", "currentAction" => "comoFunciona"))
26 
27         <?php 
28             $this->renderPartial('//layouts/header', array(
29                 'folderBase' => $folderBase,
30                 'currentController' => $currentController,
31                 'currentAction' => $currentAction)); ?>
32 
33         <?php } ?>
34 
35         <?php echo $content; ?>
36 
#15
+
 /var/www/html/SiteOfertas/controllers/SiteController.php(153): CController->render("comoFunciona")
148     public function actionSobrePolvo() {
149         $this->render("sobrePolvo");
150     }
151 
152     public function actionComoFunciona() {
153         $this->render("comoFunciona");
154     }
155 
156     public function actionAjuda() {
157         $this->render("ajuda");
158     }
2024-03-28 13:11:27 Apache/2.4.52 (Amazon) OpenSSL/1.0.2k-fips PHP/5.4.45 Yii Framework/1.1.15