PHP warning

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

/home/c78212/mailand.ru/www/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

#2
+
 /home/c78212/mailand.ru/www/protected/controllers/SiteController.php(110): spl_autoload_call("Publication")
105    * @param      $id
106    * @param bool $success
107    * @throws CHttpException
108    */
109   public function actionPublicationSingle($id, $success = false){
110     $publication = Publication::model()->published()->findByPk($id);
111     if(!$publication){
112       throw new CHttpException(404);
113     }
114 
115     $articles = Publication::model()->published()->findAll(array(
#12
+
 /home/c78212/mailand.ru/www/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-28 13:56:51 Apache/2.4.38 (Debian) Yii Framework/1.1.13