CDbException

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

/usr/www/users/phun/phundament2013/vendor/yiisoft/yii/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
+
 /usr/www/users/phun/phundament2013/vendor/phundament/p3pages/models/BaseP3Page.php(22): CActiveRecord::model("P3Page")
17 #Yii::import('ext.phundament.p3extensions.components.*');
18 
19 abstract class BaseP3Page extends P3ActiveRecord{
20     public static function model($className=__CLASS__)
21     {
22         return parent::model($className);
23     }
24 
25     public function tableName()
26     {
27         return 'p3_page';
#8
+
 /usr/www/users/phun/phundament2013/vendor/phundament/p3pages/models/P3Page.php(14): BaseP3Page::model("P3Page")
09     const PAGE_ID_KEY = 'pageId';
10     const PAGE_NAME_KEY = 'pageName';
11 
12     // Add your model-specific methods here. This file will not be overriden by gtc except you force it.
13     public static function model($className = __CLASS__) {
14         return parent::model($className);
15     }
16 
17     public function init() {
18         return parent::init();
19     }
#9
+
 /usr/www/users/phun/phundament2013/vendor/phundament/p3pages/controllers/DefaultController.php(40): P3Page::model()
35         $model = null;
36         $id = (isset($_GET[P3Page::PAGE_ID_KEY]) && is_numeric($_GET[P3Page::PAGE_ID_KEY])) ? $_GET[P3Page::PAGE_ID_KEY] : null;
37         $name = isset($_GET[P3Page::PAGE_NAME_KEY]) ? $_GET[P3Page::PAGE_NAME_KEY] : null;
38 
39         if ($id) {
40             $model = P3Page::model()->default()->findByPk($id);
41         } elseif ($name) {
42             $model = P3Page::model()->default()->findByAttributes(array('name' => $name));
43             // redirect for consistency reasons
44             if ($model !== null) {
45                 Yii::app()->request->redirect($this->createUrl('/p3/p3Page/view', array_merge($_GET, array(P3Page::PAGE_ID_KEY => $model->id, P3Page::PAGE_NAME_KEY => $model->name))));
2024-03-29 08:34:50 Apache Yii Framework/1.1.13