CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it

E:\kunden\homepages\18\d158754033\www\gotservice\yii\framework\db\CDbConnection.php(399)

387                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
388             try
389             {
390                 Yii::trace('Opening DB connection','system.db.CDbConnection');
391                 $this->_pdo=$this->createPdoInstance();
392                 $this->initConnection($this->_pdo);
393                 $this->_active=true;
394             }
395             catch(PDOException $e)
396             {
397                 if(YII_DEBUG)
398                 {
399                     throw new CDbException('CDbConnection failed to open the DB connection: '.
400                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
401                 }
402                 else
403                 {
404                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
405                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
406                 }
407             }
408         }
409     }
410 
411     /**

Stack Trace

#7
+
 E:\kunden\homepages\18\d158754033\www\gotservice\protected\models\SecurityQuestion.php(94): CActiveRecord->findAll()
89         ));
90     }
91 
92     public function getSecurityQuestionList()
93     {
94         $returnArr = SecurityQuestion::model()->findAll();
95         return CHtml::listData($returnArr, 'secq_id', 'secq_name');
96     }
97 }
#8
+
 E:\kunden\homepages\18\d158754033\www\gotservice\protected\views\customer\recovery.php(42): SecurityQuestion->getSecurityQuestionList()
37                         <?php echo $form->error($recovery,'email'); ?>
38                     </div>
39                 
40                     <div class="row">
41                         <?php echo $form->labelEx($recovery,'security_question'); ?>
42                         <?php echo $form->dropDownList($recovery,'security_question',SecurityQuestion::model()->getSecurityQuestionList()); ?>
43                         <?php echo $form->error($recovery,'security_question'); ?>
44                     </div>
45                     
46                     <div class="row">
47                         <?php echo $form->labelEx($recovery,'security_answer'); ?>
#13
+
 E:\kunden\homepages\18\d158754033\www\gotservice\protected\controllers\CustomerController.php(515): CController->render("recovery", array("recovery" => CustomerRecoveryForm, "errmsg" => ""))
510                     else
511                         $errmsg = 'ERROR: fail to retrieve your account with the provided information. Please contact GOT web administrator via '
512                                                .Yii::app()->params['adminEmail'];
513                 }
514             }
515             $this->render('recovery',array('recovery'=>$recovery,'errmsg'=>$errmsg));                
516         }
517     }
518     
519 
520     public function actionPassword()
2024-03-28 10:54:13 Microsoft-IIS/10.0 Yii Framework/1.1.17