CDbException

CDbConnection failed to open the DB connection: could not find driver

/home/bigfoodb/public_html/framework/yiilite.php(8788)

8776             if(empty($this->connectionString))
8777                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
8778             try
8779             {
8780                 $this->_pdo=$this->createPdoInstance();
8781                 $this->initConnection($this->_pdo);
8782                 $this->_active=true;
8783             }
8784             catch(PDOException $e)
8785             {
8786                 if(YII_DEBUG)
8787                 {
8788                     throw new CDbException('CDbConnection failed to open the DB connection: '.
8789                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
8790                 }
8791                 else
8792                 {
8793                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
8794                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
8795                 }
8796             }
8797         }
8798     }
8799     protected function close()
8800     {

Stack Trace

#9
+
 /home/bigfoodb/public_html/index.php(17): CApplication->run()
12 
13 // remove the following line when in production mode
14 defined('YII_DEBUG') or define('YII_DEBUG',true);
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-03-29 13:05:11 Apache/2.4.58 Yii Framework/1.1.24