CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [3118] Access denied for user 'wngkab20_web'@'localhost'. Account is locked.

/home/wonogirikab/public_html/framework/db/CDbConnection.php(382)

370                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371             try
372             {
373                 Yii::trace('Opening DB connection','system.db.CDbConnection');
374                 $this->_pdo=$this->createPdoInstance();
375                 $this->initConnection($this->_pdo);
376                 $this->_active=true;
377             }
378             catch(PDOException $e)
379             {
380                 if(YII_DEBUG)
381                 {
382                     throw new CDbException('CDbConnection failed to open the DB connection: '.
383                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
384                 }
385                 else
386                 {
387                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#7
+
 /home/wonogirikab/public_html/protected/controllers/WebController.php(106): CActiveRecord->find()
101         $this->render('list_download',array('model_download'=>$model_download,'idtahun'=>$idtahun));
102     }
103 
104     public function actionKontent()
105     {
106         $this->webconfig = WebConfig::model()->find();
107         $this->modemenu = $this->action->id; 
108         $id = Yii::app()->request->getParam('id');
109         $model_kontent = WebKontent::model()->find('tblwebmenu_id=:idmenu', array(':idmenu'=>$id));
110         $this->render('kontent', array('model_kontent' =>$model_kontent));
111     }
#15
+
 /home/wonogirikab/public_html/index.php(17): CApplication->run()
12 defined('YII_DEBUG') or define('YII_DEBUG',true);
13 // specify how many levels of call stack should be shown in each log message
14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2019-05-25 20:26:53 Apache Yii Framework/1.1.15