CDbException

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

/home/exploreholidays/ridersopinion.com/tips/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

#13
+
 /home/exploreholidays/ridersopinion.com/tips/protected/views/post/index.php(12): CBaseController->widget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "itemView" => "_view", "template" => "{items} {pager}"))
07       <div id="list">
08 
09 <?php $this->widget('zii.widgets.CListView', array(
10     'dataProvider'=>$dataProvider,
11     'itemView'=>'_view',
12     'template'=>"{items}\n{pager}",
13 )); 
14 
15 ?>
16       </div>
17     </div>
#18
+
 /home/exploreholidays/ridersopinion.com/tips/protected/controllers/PostController.php(245): CController->render("index", array("dataProvider" => CActiveDataProvider))
240             'pagination'=>false,
241             'criteria'=>$criteria,
242         ));
243         
244         $this->render('index',array(
245             'dataProvider'=>$dataProvider,
246         ));
247     }
248 
249         public function actionAjax()
250     {
#31
+
 /home/exploreholidays/ridersopinion.com/tips/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-29 09:31:31 LiteSpeed Yii Framework/1.1.16