CDbException

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

/home/griyase1/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/griyase1/public_html/protected/controllers/WebController.php(27): CActiveRecord->find("tblwebkontent_mode=:kat", array(":kat" => "SAMBUTAN"))
22 
23 
24         public function actionIndex()
25         {
26             $this->modemenu = Yii::app()->request->getParam('dummy');
27             $data['sambutan'] = WebKontent::model()->find('tblwebkontent_mode=:kat', array(':kat' => 'SAMBUTAN'));
28             $this->webmenu_parent = Webmenu::model()->findAll('tblwebmenu_status=:stat AND tblwebmenu_parent=:parent', array(':stat' => 'T', ':parent' => 0));
29             $this->webconfig = WebConfig::model()->find();
30 
31             //BERITA
32             $model = new WebKontent();
#15
+
 /home/griyase1/public_html/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2020-09-28 03:40:51 LiteSpeed Yii Framework/1.1.15