CDbException

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

/var/www/clients/client1/web1/web/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
+
 /var/www/clients/client1/web1/web/survey/application/models/LSActiveRecord.php(28): CActiveRecord->hasAttribute("created")
23      * @see PluginEventBehavior
24      * @return array
25      */
26     public function behaviors(){
27         $aBehaviors=array();
28         $sCreateFieldName=($this->hasAttribute('created')?'created':null);
29         $sUpdateFieldName=($this->hasAttribute('modified')?'modified':null);
30         $sDriverName = Yii::app()->db->getDriverName();
31         if ($sDriverName=='sqlsrv' || $sDriverName=='dblib')
32         {
33             $sTimestampExpression=new CDbExpression('GETDATE()');
#10
+
 /var/www/clients/client1/web1/web/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
+
 /var/www/clients/client1/web1/web/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-29 11:41:06 Apache Yii Framework/1.1.16