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/themes/frontend/views/layouts/_menu.php(4): P3Page::model()
1 <?php
2 Yii::import('p3pages.modules.*');
3 
4 $rootNode = P3Page::model()->findByAttributes(array('layout' => '_BootMenu'));
5 $this->widget('TbNavbar', array(
6                                //'fluid' => true,
7                                'collapse' => true,
8                                'items' => array(
9                                    array(
2024-03-29 11:43:34 Apache Yii Framework/1.1.13