CDbException

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

/HDDold/www/chiasediadiem.net/common/lib/Yii/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
+
 /HDDold/www/chiasediadiem.net/common/models/settings/SiteSettings.php(96): CActiveRecord->findByPk(1)
091     /**
092      * get site setting
093      * @return array site info
094      */
095     public static function getSiteSettings() {
096         $site = self::model()->findByPk(self::SITE_ID);
097         if ($site)
098             return $site->attributes;
099         return array();
100     }
101 
#8
+
 /HDDold/www/chiasediadiem.net/public/components/PublicController.php(40): SiteSettings::getSiteSettings()
35     /**
36      * default controller
37      * @var type 
38      */
39     public function init() {
40         $this->siteinfo = SiteSettings::getSiteSettings();
41         $this->defaultProvince = LibProvinces::getDefaultProvince();
42         if ($this->siteinfo['site_title'] != '')
43             $this->pageTitle = $this->siteinfo['site_title'];
44         if ($this->siteinfo['meta_keywords'] != '')
45             $this->metakeywords = $this->siteinfo['meta_keywords'];
#10
+
 /HDDold/www/chiasediadiem.net/common/components/WebApplication.php(33): CWebApplication->runController("site/about")
28      * that Apache polls its processes to see if they're alive. This function causes
29      * Yii to respond without logging errors.
30      */
31     public function runController($route) {
32         try {
33             parent::runController($route);
34         } catch (CHttpException $e) {
35             if (@$_SERVER['REQUEST_METHOD'] == 'OPTIONS' && @$_SERVER['REQUEST_URI'] == '*') {
36                 Yii::app()->end('Hello, friend!');
37             } else
38                 throw $e;
2024-03-28 20:38:23 Apache Yii Framework/1.1.15