CDbException

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

/home/vvqieykujyhvjze3/public_html/protected/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
+
 /home/vvqieykujyhvjze3/public_html/protected/models/Category.php(30): CActiveRecord::model("Category")
25      * @param string $className active record class name.
26      * @return Category the static model class
27      */
28     public static function model($className=__CLASS__)
29     {
30         return parent::model($className);
31     }
32 
33     /**
34      * @return string the associated database table name
35      */
#8
+
 /home/vvqieykujyhvjze3/public_html/protected/controllers/RangeController.php(61): Category::model()
56      * Displays a particular model.
57      * @param integer $id the ID of the model to be displayed
58      */
59     public function actionView($catSlug, $brandSlug, $rangeSlug)
60     {
61                 $catData = Category::model()->find(array('condition'=>"slug ='".$catSlug."'"));
62                 $brandData = Brand::model()->find(array('condition'=>"slug ='".$brandSlug."'"));
63                 $brandId = $brandData->id;
64                 $this->layout = "//layouts/public";
65                 $relatedRanges=array();
66                 $range=array();
#23
+
 /home/vvqieykujyhvjze3/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 00:19:44 LiteSpeed Yii Framework/1.1.13