CDbException

CDbConnection failed to open the DB connection: SQLSTATE[28000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'reconomiconew'. Reason: The password of the account has expired.

/var/www/html/virtual/reporteeconomico/protected/controllers/SiteController.php(57)

45 
46     public function actionPresent()
47     {
48         // renders the view file 'protected/views/site/index.php'
49         // using the default layout 'protected/views/layouts/main.php'
50         $this->render('presentacion');
51     }
52 
53         public function actionMain($id)
54     {
55 
56         $sql = "SELECT id,id_ind from historico_periodos  where id_ind=$id and autorizado=1"; 
57            $id_periodo = Yii::app()->db->createCommand($sql)->queryRow();
58 
59 
60         if($id==72){
61             $sql = "SELECT id,id_ind from historico_periodos  where id_ind=71 and autorizado=1"; 
62             $id_periodo = Yii::app()->db->createCommand($sql)->queryRow();
63 
64         }elseif($id==78){
65             $sql = "SELECT id,id_ind from historico_periodos  where id_ind=77 and autorizado=1"; 
66             $id_periodo = Yii::app()->db->createCommand($sql)->queryRow(); 
67 
68         }elseif($id==84){
69             $sql = "SELECT id,id_ind from historico_periodos  where id_ind=77 and autorizado=1"; 

Stack Trace

#4
+
 /var/www/html/virtual/reporteeconomico/protected/controllers/SiteController.php(57): CModule->__get("db")
52 
53         public function actionMain($id)
54     {
55 
56         $sql = "SELECT id,id_ind from historico_periodos  where id_ind=$id and autorizado=1"; 
57            $id_periodo = Yii::app()->db->createCommand($sql)->queryRow();
58 
59 
60         if($id==72){
61             $sql = "SELECT id,id_ind from historico_periodos  where id_ind=71 and autorizado=1"; 
62             $id_periodo = Yii::app()->db->createCommand($sql)->queryRow();
#14
+
 /var/www/html/virtual/reporteeconomico/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 10:42:03 Apache Yii Framework/1.1.15