CDbException

CDbException

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

/home/p7000155/public_html/yii/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

#8
+
 /home/p7000155/public_html/protected/controllers/SiteController.php(43): CActiveRecord->__construct()
38     public function actionSantacruz(){
39         $this->render('santacruz');
40     }
41     public function actionCotizacion(){
42         $model=new ContactForm;
43         $cotiz=new Cotizacion();
44         $this->performAjaxValidation($cotiz);
45         if(isset($_POST['Cotizacion'])){
46             $nombre=$_POST['Cotizacion']['nombre'];
47             $empresa=$_POST['Cotizacion']['empresa'];
48             $email=$_POST['Cotizacion']['email'];
#16
+
 /home/p7000155/public_html/index.php(30): CApplication->run()
25 defined('YII_DEBUG') or define('YII_DEBUG',true);
26 // specify how many levels of call stack should be shown in each log message
27 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
28 
29 require_once($yii);
30 Yii::createWebApplication($config)->run();
2024-04-20 04:41:58 Apache Yii Framework/1.1.14