Yii Framework Forum: Include(Controller.php): Failed To Open Stream: No Such File Or Directory - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Include(Controller.php): Failed To Open Stream: No Such File Or Directory main.php rights-yii configuration

#1 User is offline   Joemaxwell 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 13-February 13
  • Location:Fiji Via Melbourne

Posted 14 April 2013 - 10:46 PM


PHP warning
include(Controller.php): failed to open stream: No such file or directory

/Applications/MAMP/htdocs/yii/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 else421 include($className.'.php');422 }423 else // class name with namespace in PHP 5.3424 {425 $namespace=str_replace('\\','.',ltrim($className,'\\'));426 if(($path=self::getPathOfAlias($namespace))!==false)427 include($path.'.php');428 else429 return false;430 }431 return class_exists($className,false) || interface_exists($className,false);432 }433 return true;

Stack Trace
#0+ /Applications/MAMP/htdocs/yii/framework/YiiBase.php(421): YiiBase::autoload()#1 unknown(0): YiiBase::autoload("Controller")#2 /Applications/MAMP/htdocs/trackstar/protected/controllers/SiteController.php(4): spl_autoload_call("Controller")1 <?php2 3 class SiteController extends Controller4 {5 /**6 * Declares class-based actions.7 */8 public function actions()9 {#3+ /Applications/MAMP/htdocs/yii/framework/web/CWebApplication.php(354): require("/Applications/MAMP/htdocs/trackstar/protected/controllers/SiteCo...")#4+ /Applications/MAMP/htdocs/yii/framework/web/CWebApplication.php(276): CWebApplication->createController("site/login")#5+ /Applications/MAMP/htdocs/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("site/login")#6+ /Applications/MAMP/htdocs/yii/framework/base/CApplication.php(169): CWebApplication->processRequest()#7 /Applications/MAMP/htdocs/trackstar/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 message10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);11 12 require_once($yii);13 Yii::createWebApplication($config)->run();
2013-04-15 05:25:46 Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.4.4 Yii Framework/1.1.13
0

#2 User is offline   Joemaxwell 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 13-February 13
  • Location:Fiji Via Melbourne

Posted 14 April 2013 - 10:47 PM

I was trying to install rights-yii extension and i got this error can someone give me hand on this.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users