PHP warning

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

/home/inseasonezine/public_html/emagazines/protected/yii/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
+
 /home/inseasonezine/public_html/emagazines/protected/controllers/ViewController.php(25): spl_autoload_call("CHttpExpection")
20     }
21 
22     public function actionPublication($url,$page=1){
23         $publication = Publication::model()->findByAttributes(array('url'=>$url));
24 
25         if(!$publication) throw new CHttpExpection(404,'Could not find requested publication');
26 
27         $this->og_title = $publication->title.' - Page '.$page;
28         $this->og_sitename = Yii::app()->params['site_title'];
29         $this->og_url = Yii::app()->getBaseUrl(true).Yii::app()->createUrl('view/publication',array('id'=>$publication->id,'page'=>$page));
30         $this->og_desc = "Page ".$page.' of '.$publication->title;
#12
+
 /home/inseasonezine/public_html/emagazines/index.php(14): CApplication->run()
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 
14 Yii::createWebApplication($config)->run();
2024-03-29 01:54:35 Apache Yii Framework/1.1.14