Voyage CDbException

CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied for user 'garagevinconneau_root'@'localhost' (using password: YES)

/home3/garagevinconneau/public_html/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
+
 /home3/garagevinconneau/public_html/protected/models/Category.php(21): CActiveRecord::model("Category")
16      * @param string $className active record class name.
17      * @return Category the static model class
18      */
19     public static function model($className=__CLASS__)
20     {
21         return parent::model($className);
22     }
23 
24     /**
25      * @return string the associated database table name
26      */
#8
+
 /home3/garagevinconneau/public_html/protected/models/Category.php(104): Category::model()
099             'criteria'=>$criteria,
100         ));
101     }
102         
103         public static function whichHasPins() {
104             return self::model()->findAll(array(
105                 'condition' => 't.is_active = 1 AND p.is_active = 1',
106                 'join' => ' INNER JOIN pin_category pc ON pc.fk_category = t.id_category
107                             INNER JOIN pin p ON p.id_pin = pc.fk_pin
108                             ',
109                 'group' => 't.id_category',
#9
+
 /home3/garagevinconneau/public_html/themes/classic/views/partials/header.php(86): Category::whichHasPins()
81             }(document));
82 
83         </script>
84 
85         <div id="pin-category-top-wrap" class="clearfix" style="display: none;">
86             <?php $cats = Category::whichHasPins() ?>
87             <?php if($cats): ?>
88                 <ul>
89                 <?php foreach($cats as $cat): ?>
90                     <li><a href="<?php echo Yii::app()->createUrl('pin/index/index', array('category' => Yii::t('yii', Utility::seoName($cat->title)), 'id_category' => $cat->id_category)) ?>"><?php echo CHtml::encode(Yii::t('yii', $cat->title)) ?></a></li>
91                 <?php endforeach; ?>
2019-03-23 16:48:10 Apache Yii Framework/1.1.13