CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1049] Unknown database 'brdepyla_blog'

/home/brdepylaction/yii-1.1.13.e9e4a0/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

#7
+
 /home/brdepylaction/public_html/site/protected/models/TipoServico.php(26): CActiveRecord::model("TipoServico")
21      * @param string $className active record class name.
22      * @return TipoServico the static model class
23      */
24     public static function model($className=__CLASS__)
25     {
26         return parent::model($className);
27     }
28 
29     /**
30      * @return string the associated database table name
31      */
#8
+
 /home/brdepylaction/public_html/site/protected/views/layouts/main.php(163): TipoServico::model()
158                                     <ul class="menuFlutuante menuFlutuanteDepilacao">
159                                         <?php
160                                             $criteria = new CDbCriteria();
161                                             $criteria->compare("tsrv_depilacao", 1);
162                                             $criteria->compare("tsrv_status", 1);
163                                             $tipos_servicos = TipoServico::model()->findAll($criteria);
164 
165                                             foreach ($tipos_servicos as $t) {
166                                         ?>
167 
168                                         <?php if ($t->tsrv_nome == "Cera Morna") { ?>
#12
+
 /home/brdepylaction/public_html/site/protected/controllers/SejaMaisDepylController.php(22): CController->render("pt_br/index", array("slug" => "", "lang" => "pt_br"))
17 
18         $this->render($this->l.'index',array(
19             'slug'=>'',
20             'lang'=>Yii::app()->language
21             )
22         );
23     }
24 
25 
26     public function actionViewAction($slug1, $slug2=null) {
27 
2018-07-21 23:36:08 Apache Yii Framework/1.1.13