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/modules/pin/models/Pin.php(31): CActiveRecord::model("Pin")
26      * Returns the static model of the specified AR class.
27      * @param string $className active record class name.
28      * @return Pin the static model class
29      */
30     public static function model($className = __CLASS__) {
31         return parent::model($className);
32     }
33 
34     /**
35      * @return string the associated database table name
36      */
#8
+
 /home3/garagevinconneau/public_html/protected/modules/pin/PinModule.php(198): Pin::model()
193         return new User;
194     }
195 
196     public function getPins($condition = '') {
197         if (is_int($condition)) {
198             return Pin::model()->findByPk($condition);
199         } else {
200             return Pin::model()->findAll($condition);
201         }
202     }
203 
#9
+
 /home3/garagevinconneau/public_html/protected/modules/pin/controllers/IndexController.php(75): PinModule->getPins(27)
70         $this->render('index', array('pins' => $pins, 'user' => $user, 'board' => $board, 'pages' => $pages));
71     }
72 
73     public function actionView() {
74         $id = (int) Yii::app()->request->getParam('id');
75         $pin = $this->getModule()->getPins($id);
76         if (Yii::app()->request->isAjaxRequest) {
77             $this->renderPartial('view', array('pin' => $pin, 'commentForm' => $this->_getCommentForm($pin, new PinComment())));
78         } else {
79             $this->render('view', array('pin' => $pin, 'commentForm' => $this->_getCommentForm($pin, new PinComment())));
80         }
2019-02-22 22:58:07 Apache Yii Framework/1.1.13