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/models/Categoria.php(195): CActiveRecord->findAll(array("condition" => "eliminado=0 and padre is null", "order" => "nombre"))
190         }
191         return $arreglo;
192     }
193     public function getListadoCategoriasNoticias()
194     {
195         $listado = Categoria::model()->findAll( array('condition' =>'eliminado=0 and padre is null','order'=>'nombre' ));
196 
197         if(!$listado) return array();
198         $arreglo=array();
199         $arreglo["0"] = "Todas";
200         foreach($listado as $item)
#8
+
 /home/recordq/public_html/sitioweb/www/protected/views/noticia/listaNoticias.php(31): Categoria->getListadoCategoriasNoticias()
26   <div id="noticias" class="container">
27     <div class="row">
28       <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center">
29         <label class="required">Filtrar por Categor&iacute;a </label>
30         <?php 
31           $list = Categoria::getListadoCategoriasNoticias(); 
32           echo CHtml::dropDownList($model,$_GET["catId"],$list,array("id"=>"ddlcategoria"));
33         ?>
34         <a href="index.php?r=noticia/listaNoticias" id="btFiltro" class="btn-default btn-blue margin-left-20">Mostrar</a>
35       </div>
36     </div>
#13
+
 /home/recordq/public_html/sitioweb/www/protected/controllers/NoticiaController.php(226): CController->render("listaNoticias", array("dataProvider" => CActiveDataProvider))
221             ),
222         ));
223 
224         $this->render('listaNoticias',array(
225             'dataProvider'=>$dataProvider,
226         ));
227     }
228 
229     public function actionDetalleNoticia($notId) {
230         $this->layout = "mainfrontend";
231         $this->render('detalleNoticia',array(
2024-03-28 16:40:36 Apache Yii Framework/1.1.15