Warning: Cannot modify header information - headers already sent by (output started at /home/www/staging.rajarani.dk/index.php:1) in /home/www/staging.rajarani.dk/index.php on line 4
CDbException

CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1049] Unknown database 'norvida_staging'

/home/www/staging.rajarani.dk/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/www/staging.rajarani.dk/protected/modules/user/controllers/HomeController.php(37): CActiveRecord->__construct()
32         $geoIp = new EGeoIP();
33         $geoIp->locate($ip); // use your IP
34             
35         if (Yii::app()->user->isGuest) {
36             $model=new UserLogin;
37             $regmodel = new RegistrationForm;
38 
39             // collect user input data
40             if(isset($_POST['UserLogin']))
41             {
42               if($_POST['UserLogin']['username']==UserModule::t('User Name'))
#16
+
 /home/www/staging.rajarani.dk/index.php(18): CApplication->run()
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
14 
15 require_once($yii);
16 require_once($helper);
17 
18 Yii::createWebApplication($config)->run();
2025-10-25 20:51:43 Apache Yii Framework/1.1.31