PHP warning

PHP warning

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

/home/api2contrib/public_html/yii/YiiBase.php(421)

409                         {
410                             include($classFile);
411                             if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')
412                                 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
413                                     '{class}'=>$className,
414                                     '{file}'=>$classFile,
415                                 )));
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/api2contrib/public_html/protected/components/MyActiveRecord.php(104): CModule->__get("dbforumread1")
099         if(Yii::app()->params['dbcon']=='read'){
100             if (self::$dbforumread1 !== null)
101                 return self::$dbforumread1;
102             else
103             {
104                 self::$dbforumread1 = Yii::app()->dbforumread1;
105                 if (self::$dbforumread1 instanceof CDbConnection)
106                 {
107                     self::$dbforumread1->setActive(true);
108                     return self::$dbforumread1;
109                 }
#9
+
 /home/api2contrib/public_html/protected/models/forum/ForumPosts.php(19): MyActiveRecord::getForumDbConnection()
14  */
15 class ForumPosts extends MyActiveRecord
16 {
17     public function getDbConnection()
18     {
19         return self::getForumDbConnection();
20     }
21     /**
22      * Returns the static model of the specified AR class.
23      * @param string $className active record class name.
24      * @return ForumPosts the static model class
#12
+
 /home/api2contrib/public_html/protected/models/forum/ForumPosts.php(29): CActiveRecord::model("ForumPosts")
24      * @return ForumPosts the static model class
25      */
26      
27     public static function model($className=__CLASS__)
28     {
29         return parent::model($className);
30     }
31 
32     /**
33      * @return string the associated database table name
34      */
2020-03-29 11:47:16 Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Yii Framework/1.1.13