CDbException

CDbConnection не удалось найти класс PDO "PDO". Убедитесь, что PDO установлен и настроен.

/var/www/artezburD/artezbur.ua/framework/db/CDbConnection.php(426)

414     {
415         $pdoClass=$this->pdoClass;
416         if(($pos=strpos($this->connectionString,':'))!==false)
417         {
418             $driver=strtolower(substr($this->connectionString,0,$pos));
419             if($driver==='mssql' || $driver==='dblib')
420                 $pdoClass='CMssqlPdoAdapter';
421             elseif($driver==='sqlsrv')
422                 $pdoClass='CMssqlSqlsrvPdoAdapter';
423         }
424 
425         if(!class_exists($pdoClass))
426             throw new CDbException(Yii::t('yii','CDbConnection is unable to find PDO class "{className}". Make sure PDO is installed correctly.',
427                 array('{className}'=>$pdoClass)));
428 
429         @$instance=new $pdoClass($this->connectionString,$this->username,$this->password,$this->_attributes);
430 
431         if(!$instance)
432             throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'));
433 
434         return $instance;
435     }
436 
437     /**
438      * Initializes the open db connection.

Stack Trace

#8
+
 /var/www/artezburD/artezbur.ua/protected/controllers/NewsController.php(86): CActiveRecord->find(CDbCriteria)
81       public function actionView($alias){        
82          $criteria = new CDbCriteria;
83          $criteria->condition = 'news_alias = :alias AND id_lang = :id_lang';
84          $criteria->params = array(':alias' => $alias,':id_lang' => $this->idLang );
85 
86          $news = NewsEx::model()->find($criteria);
87          
88          if(!$news){
89              throw new CHttpException(404, Yii::t('site','empty'));
90          }
91          
#18
+
 /var/www/artezburD/artezbur.ua/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2016-08-27 09:19:03 Apache/2.4.10 (Debian) Yii Framework/1.1.15