PHP warning

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

/home/foresvn/domains/forestcity.vn/public_html/common/lib/framework/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

#2
+
 /home/foresvn/domains/forestcity.vn/public_html/common/models/Property.php(3): spl_autoload_call("Db2ActiveRecord")
1 <?php
2 class Property extends Db2ActiveRecord
3 {
4     public static function model($className = __CLASS__) {
5         return parent::model($className);
6       }
7       
8     /**
#5
+
 /home/foresvn/domains/forestcity.vn/public_html/frontend/protected/controllers/PropertyController.php(501): spl_autoload_call("Property")
496     }
497   }
498 
499   public function actionView() {
500     $id = Yii::app()->request->getParam('id');
501     $model = Property::model()->findByPk($id);
502     if (!$model) {
503       $this->redirect(array("/tai-san"));
504     }
505     $model->visit = intval($model->visit) + 1;    
506     $model->save();
#13
+
 /home/foresvn/domains/forestcity.vn/public_html/index.php(22): CApplication->run()
17 
18 require_once($yii);
19 require_once($global);
20 require_once($define);
21 
22 Yii::createWebApplication($config)->run();
2024-03-19 11:09:07 Apache/2 Yii Framework/1.1.13