CDbException

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

/var/www/html/admin_test/framework/db/CDbConnection.php(399)

387                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
388             try
389             {
390                 Yii::trace('Opening DB connection','system.db.CDbConnection');
391                 $this->_pdo=$this->createPdoInstance();
392                 $this->initConnection($this->_pdo);
393                 $this->_active=true;
394             }
395             catch(PDOException $e)
396             {
397                 if(YII_DEBUG)
398                 {
399                     throw new CDbException('CDbConnection failed to open the DB connection: '.
400                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
401                 }
402                 else
403                 {
404                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
405                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
406                 }
407             }
408         }
409     }
410 
411     /**

Stack Trace

#7
+
 /var/www/html/beautyandsadness/protected/components/Controller.php(63): CActiveRecord->findAllByAttributes(array("domain" => "http://beautyandsadnessopera.com"))
58         $this->company_obj = Company::model()->findByAttributes(array('web_id'=>$this->web_id));
59         Yii::app()->name = $this->company_obj->name;
60     }
61 
62     public function getWebID() {
63         $web_id = Domain::model()->findAllByAttributes(array('domain'=>Yii::app()->getBaseUrl(true)));
64         return $web_id[0]['web_id'];
65     }
66 
67     public function getLangList()
68     {
#8
+
 /var/www/html/beautyandsadness/protected/controllers/SiteController.php(19): Controller->getWebID()
14      */
15 
16 
17     public function init()
18     {
19         $this->web_id = $this->getWebID();
20         $this->lang = (!empty($_GET['lang'])) ? $_GET['lang'] : $this->get_WebDefaultLang();
21         $_GET['level_1'] = (!empty($_GET['level_1'])) ? $_GET['level_1'] : $this->get_homePage_link()->page_url;
22         $lang_obj = Lang::model()->findByAttributes(array('lang_short_form'=>$this->lang));
23         $lang_arr = $lang_obj->attributes;
24         $this->lang_id = $lang_arr['lang_id'];
#12
+
 /var/www/html/beautyandsadness/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 date_default_timezone_set('Asia/Hong_Kong');
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 21:36:34 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/7.1.13 Yii Framework/1.1.19