CDbException

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

/var/www/vhosts/teleroma56.tv/httpdocs/framework/db/CDbConnection.php(381)

369                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
370             try
371             {
372                 Yii::trace('Opening DB connection','system.db.CDbConnection');
373                 $this->_pdo=$this->createPdoInstance();
374                 $this->initConnection($this->_pdo);
375                 $this->_active=true;
376             }
377             catch(PDOException $e)
378             {
379                 if(YII_DEBUG)
380                 {
381                     throw new CDbException('CDbConnection failed to open the DB connection: '.
382                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
383                 }
384                 else
385                 {
386                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
387                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
388                 }
389             }
390         }
391     }
392 
393     /**

Stack Trace

#7
+
 /var/www/vhosts/teleroma56.tv/httpdocs/teleroma56/protected/models/News.php(49): CActiveRecord::model("News")
44      * @param string $className active record class name.
45      * @return News the static model class
46      */
47     public static function model($className=__CLASS__)
48     {
49         return parent::model($className);
50     }
51 
52     /**
53      * @return string the associated database table name
54      */
#8
+
 /var/www/vhosts/teleroma56.tv/httpdocs/teleroma56/protected/controllers/NewsController.php(12): News::model()
07         $this->render('index');
08     }
09 
10     public function actionView($id)
11     {
12         $model = News::model()->findByPK($id);
13         
14         if($model===null)
15             throw new CHttpException(404,'The requested page does not exist.');
16         
17         
#18
+
 /var/www/vhosts/teleroma56.tv/httpdocs/teleroma56/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 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 20:25:25 Apache Yii Framework/1.1.13