When I log in using the user module on localhost or on test server, using postgre database, I don’t get any error but when I try logging on production server I get the following:
CDbException
CDbConnection failed to open the DB connection: SQLSTATE[IM001]: Driver does not support this function: driver does not support setting attributes
/home/engagefi/public_html/Yii/framework/db/CDbConnection.php(287)
275 throw new CDbException(Yii::t(‘yii’,‘CDbConnection.connectionString cannot be empty.’));
276 try
277 {
278 Yii::trace(‘Opening DB connection’,‘system.db.CDbConnection’);
279 $this->_pdo=$this->createPdoInstance();
280 $this->initConnection($this->_pdo);
281 $this->_active=true;
282 }
283 catch(PDOException $e)
284 {
285 if(YII_DEBUG)
286 {
287 throw new CDbException(Yii::t(‘yii’,‘CDbConnection failed to open the DB connection: {error}’,
288 array(’{error}’=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo);
289 }
290 else
291 {
292 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,‘exception.CDbException’);
293 throw new CDbException(Yii::t(‘yii’,‘CDbConnection failed to open the DB connection.’),(int)$e->getCode(),$e->errorInfo);
294 }
295 }
296 }
297 }
298
299 /**
Does anybody know why this is happening? Postgre sql is enabled on all servers and also PDO(from what I know).
Thanks