CDbException

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

/var/www/vhosts/rklinik.kz/roddom/kaz/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
+
 /var/www/vhosts/rklinik.kz/roddom/kaz/protected/components/Controller.php(38): CActiveRecord->findAll(array("condition" => "is_public = 1 and type = "top_menu"", "order" => "t.position"))
33 
34     public $selected_top_menu;
35 
36     public function init()
37     {
38         $this->site_categories = Category::model()->findAll(array('condition' => 'is_public = 1 and type = "top_menu"', 'order' => 't.position'));
39         $this->site_settings = Settings::model()->find(array('condition' => 't.sys_name = "main"'));
40     }
41         
42     public function filters(){
43         return array(
#11
+
 /var/www/vhosts/rklinik.kz/roddom/kaz/protected/behaviors/WebApplicationEndBehavior.php(23): CApplication->run()
18         
19         // обрабатываем событие создания модуля
20         $this->onModuleCreate = array($this, 'changeModulePaths');
21         $this->onModuleCreate(new CEvent ($this->owner));
22         
23         $this->owner->run();        
24     }
25     
26     // обработчик события onModuleCreate
27     public function onModuleCreate($event)
28     {
#13
+
 /var/www/vhosts/rklinik.kz/roddom/kaz/index.php(13): CComponent->__call("runEnd", array("frontend"))
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 
12 require_once($yii);
13 Yii::createWebApplication($config)->runEnd('frontend');
2024-03-19 07:50:22 Apache Yii Framework/1.1.15