CDbException

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

/home/recordq/public_html/sitioweb/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

#7
+
 /home/recordq/public_html/sitioweb/www/protected/views/producto/detalleProducto.php(7): CActiveRecord->findByPk("952")
02     // Register carrito.js script
03   Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/carrito.js',CClientScript::POS_END);
04     // Register multizoom.js script
05     Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/multizoom.js',CClientScript::POS_END);
06 
07     $producto = Producto::model()->with("imagenes")->with("medida")->findByPk($prodId);
08 
09   $categoria = Categoria::model()->findByPk($subId);
10 
11   /*$this->breadcrumbs = array(
12     $categoria->nombre=>array('producto/listaProductos', 'subId'=>$subId,'marca'=>'0'),
#12
+
 /home/recordq/public_html/sitioweb/www/protected/controllers/ProductoController.php(322): CController->render("detalleProducto", array("prodId" => "952", "subId" => "3"))
317     public function actionDetalleProducto($prodId,$subId) {
318         $this->layout = "mainfrontend";
319         $this->render('detalleProducto',array(
320             'prodId'=>$prodId,
321             'subId'=>$subId,
322         ));
323     }
324 
325     public function actionBuscar() {
326         $this->layout = "mainfrontend";
327 
#27
+
 /home/recordq/public_html/sitioweb/www/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-19 06:28:00 Apache Yii Framework/1.1.15