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/p3widgets/models/BaseP3Widget.php(24): CActiveRecord::model("P3Widget")
19  * @property P3WidgetTranslation[] $p3WidgetTranslations
20  */
21 abstract class BaseP3Widget extends CActiveRecord{
22     public static function model($className=__CLASS__)
23     {
24         return parent::model($className);
25     }
26 
27     public function tableName()
28     {
29         return 'p3_widget';
#8
+
 /usr/www/users/phun/phundament2013/vendor/phundament/p3widgets/models/P3Widget.php(11): BaseP3Widget::model("P3Widget")
06 
07 class P3Widget extends BaseP3Widget {
08 
09     // Add your model-specific methods here. This file will not be overriden by gtc except you force it.
10     public static function model($className=__CLASS__) {
11         return parent::model($className);
12     }
13 
14     public function init() {
15         return parent::init();
16     }
#9
+
 /usr/www/users/phun/phundament2013/vendor/phundament/p3widgets/components/P3WidgetContainer.php(107): P3Widget::model()
102             }
103         }
104 
105         $criteria->order = "rank ASC";
106 
107         $models = P3Widget::model()->findAll($criteria);
108         Yii::trace("Found " . count($models) . " widgets.");
109 
110         // render widgets
111         $widgets = "";
112         foreach ($models AS $model) {
2024-03-28 16:52:35 Apache Yii Framework/1.1.13