CDbException

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

/home3/korrner/test.buatmo.com/framework/db/CDbConnection.php(364)

352                 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.'));
353             try
354             {
355                 Yii::trace('Opening DB connection','system.db.CDbConnection');
356                 $this->_pdo=$this->createPdoInstance();
357                 $this->initConnection($this->_pdo);
358                 $this->_active=true;
359             }
360             catch(PDOException $e)
361             {
362                 if(YII_DEBUG)
363                 {
364                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
365                         array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo);
366                 }
367                 else
368                 {
369                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
370                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
371                 }
372             }
373         }
374     }
375 
376     /**

Stack Trace

#7
+
 /home3/korrner/test.buatmo.com/protected/modules/node/models/Node.php(28): CActiveRecord::model("Node")
23      * Returns the static model of the specified AR class.
24      * @return Node the static model class
25      */
26     public static function model($className=__CLASS__)
27     {
28         return parent::model($className);
29     }
30 
31     /**
32      * @return string the associated database table name
33      */
#8
+
 /home3/korrner/test.buatmo.com/protected/modules/read/controllers/NodeController.php(50): Node::model()
45     public function actionPage($type, $judul)
46     {
47         $title =explode("-",$judul);
48         $id =$title[0];
49         if(strval(intval($id)) == strval($id) && $id>0){
50             $node = Node::model()->findByPk($id);
51             if($node){
52                 if(strtolower($node->type)=='post'){
53                     $criteria=new CDbCriteria;
54                     $post=$node->postnode;
55                     $criteria->condition='nid=:nid';
#18
+
 /home3/korrner/test.buatmo.com/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();
2026-06-11 21:28:11 Apache Yii Framework/1.1.8