PHP warning

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

/var/www/rmebelr4/yii/framework/YiiBase.php(427)

415                         {
416                             include($classFile);
417                             if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')
418                                 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
419                                     '{class}'=>$className,
420                                     '{file}'=>$classFile,
421                                 )));
422                             break;
423                         }
424                     }
425                 }
426                 else
427                     include($className.'.php');
428             }
429             else  // class name with namespace in PHP 5.3
430             {
431                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
432                 if(($path=self::getPathOfAlias($namespace))!==false)
433                     include($path.'.php');
434                 else
435                     return false;
436             }
437             return class_exists($className,false) || interface_exists($className,false);
438         }
439         return true;

Stack Trace

#2
+
 /var/www/rmebelr4/public_html/sklad-sale/protected/controllers/SiteController.php(146): spl_autoload_call("Pages")
141         $link = isset($_REQUEST['id'])?strip_tags(trim($_REQUEST['id'])):null;
142         if($link === null){
143             throw new CHttpException('Такой страницы не существует!', 404);
144         }
145 
146         $model = Pages::model()->find('link = :link AND active=:active', array(':link'=>$link, ':active'=>'Y'));
147         if($model === null){
148             throw new CHttpException(404, 'Страница не найдена!');
149         }
150         $this->pageTitle = $model->name.' | '.Yii::app()->name;
151         $this->metatitle = $model->content->meta_title;
#10
+
 /var/www/rmebelr4/public_html/sklad-sale/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 21:40:25 Apache Yii Framework/1.1.15