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/www/protected/views/site/home.php(23)

11             if ($usuario->activo == 0) {
12                 $script = "
13                 jQuery(document).ready(function($){
14                 showMessage('alert-danger', false, '<strong>¡Alerta!</strong> Aún no has activado tu cuenta, ingresa a tu email para activarla.');
15                 })
16                 ";
17                 Yii::app()->clientScript->registerScript('message-cuenta', $script, CClientScript::POS_END);
18             }
19         }
20     }
21 
22     // Link a la primera subcategoría de cada una de las 3 categorias principales
23     $categoriasLinks = Yii::app()->db->createCommand('
24         SELECT a.id, a.nombre,(select b.id from categoria b where padre=a.id limit 1)
25         FROM categoria a where a.padre is null
26         ')->queryAll();
27 
28     $urlOdontologica = "";
29     $urlMedica = "";
30     $urlLaboratorio = "";
31     foreach ($categoriasLinks as $row) {
32         switch ($row['categoria_id']) {
33             case 1:
34                 $urlOdontologica = Yii::app()->createAbsoluteUrl("producto/listaProductos", array('subId' => $row['id'],'marca'=>'0'));
35                 break;

Stack Trace

#4
+
 /home/recordq/public_html/sitioweb/www/protected/views/site/home.php(23): CModule->__get("db")
18             }
19         }
20     }
21 
22     // Link a la primera subcategoría de cada una de las 3 categorias principales
23     $categoriasLinks = Yii::app()->db->createCommand('
24         SELECT a.id, a.nombre,(select b.id from categoria b where padre=a.id limit 1)
25         FROM categoria a where a.padre is null
26         ')->queryAll();
27 
28     $urlOdontologica = "";
#9
+
 /home/recordq/public_html/sitioweb/www/protected/controllers/SiteController.php(221): CController->render("home")
216     //
217     //public $layout='mainfrontend';
218     public function actionHome()
219     {
220         $this->layout='//layouts/mainfrontend';
221         $this->render('home');
222     }
223 }
#17
+
 /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-28 03:12:03 Apache Yii Framework/1.1.15