CDbException

CDbConnection failed to open the DB connection: SQLSTATE[08004] [1040] Too many connections

/home/clifactu/public_html/yii-16-pag/framework/db/CDbConnection.php(381)

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

Stack Trace

#9
+
 /home/clifactu/public_html/protected/views/layouts/main.php(718): CActiveRecord->__construct()
713                         </div>
714                     </div>
715                     <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 footer-titulo2" id="footer-column4">
716                         <!--formulario footer -->
717                         <?php
718                         $model = new ContactoMain();
719                         $this->renderPartial('/site/_formInsertaContacto', array('model' => $model));
720                         ?>
721                     </div>
722                 </div>
723 
#17
+
 /home/clifactu/public_html/protected/views/layouts/column1.php(6): CBaseController->endContent()
1 <?php /* @var $this Controller */ ?>
2 <?php $this->beginContent('//layouts/main'); ?>
3 <div id="content">
4     <?php echo $content; ?>
5 </div><!-- content -->
6 <?php $this->endContent(); ?>
#21
+
 /home/clifactu/public_html/protected/controllers/servicios/actionFabricaDeSoftware.php(9): CController->render("/servicios/fabrica")
04 */
05 class actionFabricaDeSoftware extends CAction{
06     
07     public function run(){
08         $controller=$this->getController();
09         $controller->render('/servicios/fabrica');
10     }
11 }
12 
13 
14 
2020-06-07 05:13:42 Apache Yii Framework/1.1.13