CDbException

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

/home/admleg/public_html/yii/framework/db/CDbConnection.php(382)

370                 throw new CDbException(Yii::t('yii','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(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
383                         array('{error}'=>$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(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#8
+
 /home/admleg/public_html/l8/protected/modules/rights/components/RWebUser.php(43): CWebUser->checkAccess("Employee", array(), true)
38     * @return boolean whether the operations can be performed by this user.
39     */
40     public function checkAccess($operation, $params=array(), $allowCaching=true)
41     {
42         // Allow superusers access implicitly and do CWebUser::checkAccess for others.
43         return $this->isSuperuser===true ? true : parent::checkAccess($operation, $params, $allowCaching);
44     }
45 
46     /**
47     * @param boolean $value whether the user is a superuser.
48     */
#9
+
 /home/admleg/public_html/l8/protected/views/layouts/main.php(45): RWebUser->checkAccess("Employee")
40         'items'=>array(
41             array('label'=>'Home', 'url'=>array('/post/index'), 'visible'=>Yii::app()->user->isGuest),
42             array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about'), 'visible'=>Yii::app()->user->isGuest),
43             array('label'=>'Contact', 'url'=>array('/site/contact'), 'visible'=>Yii::app()->user->isGuest),
44             array('label'=>'Carrer', 'url'=>array('/karir/karir/lowongan'), 'visible'=>Yii::app()->user->isGuest),
45             array('label'=>'Administrator', 'url'=>array('/pegawai/pegawai/admin'), 'visible'=>Yii::app()->user->checkAccess('Employee')),
46                 
47                 array('label'=>'Carrer', 'url'=>array('/karir/karir/create'), 'visible'=>Yii::app()->user->checkAccess('Authenticated')),
48             //array('label'=>'Rights', 'url'=>array('/rights')),
49             //array('label'=>'Gii', 'url'=>array('/gii')),
50             array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
#17
+
 /home/admleg/public_html/l8/protected/views/layouts/column1.php(5): CBaseController->endContent()
1 <?php $this->beginContent('application.views.layouts.main'); ?>
2 
3         <?php echo $content; ?>
4 
5 <?php $this->endContent(); ?>
2024-03-29 11:47:04 Apache Yii Framework/1.1.10