CDbException

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

/var/www/vh2309/data/www/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/vh2309/data/www/pminstitute.by/protected/models/Settings.php(133): CActiveRecord->findByPk(1)
128             return parent::model($className);
129         }
130 
131         public static function getSettings($id)
132         {
133             return self::model()->findByPk($id);
134         }
135     }
#8
+
 /var/www/vh2309/data/www/pminstitute.by/protected/components/FrontendController.php(53): Settings::getSettings(1)
48                 if(Yii::app()->request->cookies['lang']->value == 'de') {
49                     Yii::app()->request->cookies['lang'] = new CHttpCookie('lang', 'de');
50                     Yii::app()->language = 'de';
51                 }
52             }
53             $this->settings = Settings::getSettings(Yii::app()->params['settings_id']);
54 
55              parent::init();
56         }
57 
58         /*
#9
+
 /var/www/vh2309/data/www/pminstitute.by/protected/controllers/frontend/CatalogController.php(25): FrontendController->init()
20         );
21     }
22 
23     public function init()
24     {
25         parent::init();
26         $this->getPageModule();
27         $struct = Structure::model()->findByPk($this->page_id);
28         $this->root_id = $struct->module->tree_id;
29     }
30 
2024-03-19 07:25:36 Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/7.2.34 Yii Framework/1.1.17