CDbException

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

/var/www/hb9624/data/www/raido.org.ua/1/framework/db/CDbConnection.php(364)

352                 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.'));
353             try
354             {
355                 Yii::trace('Opening DB connection','system.db.CDbConnection');
356                 $this->_pdo=$this->createPdoInstance();
357                 $this->initConnection($this->_pdo);
358                 $this->_active=true;
359             }
360             catch(PDOException $e)
361             {
362                 if(YII_DEBUG)
363                 {
364                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
365                         array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo);
366                 }
367                 else
368                 {
369                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
370                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
371                 }
372             }
373         }
374     }
375 
376     /**

Stack Trace

#9
+
 /var/www/hb9624/data/www/raido.org.ua/1/protected/controllers/DocumentsController.php(53): CActiveRecord->__construct()
48      * Displays a particular model.
49      * @param integer $id the ID of the model to be displayed
50      */
51     public function actionView($id)
52     {
53         $model=new Documents;
54         $criteria=new CDbCriteria;
55 $criteria->condition='id=:id';
56 $criteria->params=array(':id'=>$id);
57 $bubls=Documents::model()->find($criteria); 
58 
#24
+
 /var/www/hb9624/data/www/raido.org.ua/1/index.php(13): CApplication->run()
08   // specify how many levels of call stack should be shown in each log message
09   defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11   require_once($yii);
12   $app = Yii::createWebApplication($config);
13   $app->run();
2024-03-29 02:19:15 Apache Yii Framework/1.1.8