CDbException

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

/home/tudacoin/public_html/survey/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

#8
+
 /home/tudacoin/public_html/survey/application/models/LSActiveRecord.php(29): CActiveRecord->hasAttribute("created")
24      * @return array
25      */
26     public function behaviors()
27     {
28         $aBehaviors=array();
29         $sCreateFieldName=($this->hasAttribute('created')?'created':null);
30         $sUpdateFieldName=($this->hasAttribute('modified')?'modified':null);
31         $sDriverName = Yii::app()->db->getDriverName();
32         if ($sDriverName=='sqlsrv' || $sDriverName=='dblib')
33         {
34             $sTimestampExpression=new CDbExpression('GETDATE()');
#10
+
 /home/tudacoin/public_html/survey/application/models/SettingGlobal.php(28): CActiveRecord::model("SettingGlobal")
23      * @param string $class
24      * @return CActiveRecord
25      */
26     public static function model($class = __CLASS__)
27     {
28         return parent::model($class);
29     }
30 
31     /**
32      * Returns the setting's table name to be used by the model
33      *
#11
+
 /home/tudacoin/public_html/survey/application/helpers/globalsettings_helper.php(21): SettingGlobal::model()
16 injectglobalsettings();
17 
18 
19 function injectglobalsettings()
20 {
21     $settings = SettingGlobal::model()->findAll();
22 
23     //if ($dbvaluearray!==false)
24     if (count($settings) > 0)
25     {
26         foreach ($settings as $setting)
2024-03-19 09:27:29 Apache/2.4.57 (Unix) OpenSSL/1.1.1k Yii Framework/1.1.17