CDbException

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

C:\hshome\bagatchenko\ilovepetrovich.club\yii\framework\db\CDbConnection.php(381)

369                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
370             try
371             {
372                 Yii::trace('Opening DB connection','system.db.CDbConnection');
373                 $this->_pdo=$this->createPdoInstance();
374                 $this->initConnection($this->_pdo);
375                 $this->_active=true;
376             }
377             catch(PDOException $e)
378             {
379                 if(YII_DEBUG)
380                 {
381                     throw new CDbException('CDbConnection failed to open the DB connection: '.
382                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
383                 }
384                 else
385                 {
386                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
387                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
388                 }
389             }
390         }
391     }
392 
393     /**

Stack Trace

#7
+
 C:\hshome\bagatchenko\ilovepetrovich.club\protected\models\Metategs.php(24): CActiveRecord::model("Metategs")
19      * @param string $className active record class name.
20      * @return Seo the static model class
21      */
22     public static function model($className=__CLASS__)
23     {
24         return parent::model($className);
25     }
26 
27     /**
28      * @return string the associated database table name
29      */
#8
+
 C:\hshome\bagatchenko\ilovepetrovich.club\protected\extensions\metategs\EMetategs.php(25): Metategs::model()
20     {
21         if($this->prefixTitle===null && Yii::app()->name!==null){
22             $this->prefixTitle=Yii::app()->name;
23         }
24         $this->initUrl();
25         $this->metategs=Metategs::model()->find('url =:url',array(':url'=>$this->url));
26 //        $this->route=  array_merge($this->route,$this->params);
27     }
28     protected function initUrl(){
29         $url=Yii::app()->request->url;
30         $url=str_replace(' http://', '', $url);
#9
+
 C:\hshome\bagatchenko\ilovepetrovich.club\protected\components\FrontEndController.php(28): EMetategs->init()
23     function beforeAction($action){
24 
25         if(!Yii::app()->request->isAjaxRequest){
26             Yii::import('ext.metategs.EMetategs');
27             $this->metategs=new EMetategs();
28             $this->metategs->init();
29         }
30         return parent::beforeAction($action);
31     }
32     public function beforeRender($view) {
33         if(!Yii::app()->request->isAjaxRequest){
2019-01-24 08:14:11 Microsoft-IIS/7.0 Yii Framework/1.1.13