PHP Error

include(PDO.php): failed to open stream: No such file or directory

/home/mekongto/yii/framework/YiiBase.php(421)

409                 {
410                     foreach(self::$_includePaths as $path)
411                     {
412                         $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
413                         if(is_file($classFile))
414                         {
415                             include($classFile);
416                             break;
417                         }
418                     }
419                 }
420                 else
421                     include($className.'.php');
422             }
423             else  // class name with namespace in PHP 5.3
424             {
425                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
426                 if(($path=self::getPathOfAlias($namespace))!==false)
427                     include($path.'.php');
428                 else
429                     return false;
430             }
431             return class_exists($className,false) || interface_exists($className,false);
432         }
433         return true;

Stack Trace

#8
+
 /home/mekongto/public_html/protected/models/XTour.php(354): CModule->__get("db")
349                 $key = $cacheService->createKey();
350                 $cache = Yii::app()->cache->get($key);
351             }
352             $cache=false;
353             if ($cache == false) {
354                 $connect = Yii::app()->db;
355                 $sql = "SELECT * FROM tbl_tour WHERE id = ".$id;
356                 $command = $connect->createCommand($sql);
357                 $row = $command->queryRow();
358                 Yii::app()->cache->set($key, $row, ConstantsUtil::TIME_CACHE_86400); 
359             }
#9
+
 /home/mekongto/public_html/protected/controllers/HomeController.php(442): XTour->getDataByTour(375)
437             $page       = isset($_GET['page']) ? intval($_GET['page']) : 1; 
438             $title        = isset($_GET["title"])   ? $_GET["title"]:""; 
439             $tag        = isset($_GET["tag"])   ? $_GET["tag"]:"tag";
440             $cat_id    =  isset($_GET['cat_id']) ? intval($_GET['cat_id']) : 2;
441             $limit = 6;
442             $news = XTour::getDataByTour($id); 
443             $anchoi = XNews::getDataByAnChoi($id,$limit);     
444             $rand = XNews::getNewsByRand($id);        
445             // SEO
446             $str_page='';
447 
#17
+
 /home/mekongto/public_html/index.php(9): CApplication->run()
04     error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
05     $yii=dirname(__FILE__).'/../yii/framework/yii.php';
06     $config=dirname(__FILE__).'/protected/config/main.php';
07     defined('YII_DEBUG') or define('YII_DEBUG',true);    
08     require_once($yii);    
09     Yii::createWebApplication($config)->run();
10 ?>
2018-11-19 10:19:11 Apache Yii Framework/1.1.8