Closed ghost closed 11 years ago
PHP warning include(/var/www/yii/protected/modules/messages/models/YumMessage.php): failed to open stream: No such file or directory /var/www/yiiRoot/framework/YiiBase.php(395) 383 } 384 385 /** 386 * Class autoload loader. 387 * This method is provided to be invoked within an __autoload() magic method. 388 * @param string $className class name 389 * @return boolean whether the class has been loaded successfully 390 */ 391 public static function autoload($className) 392 { 393 // use include so that the error PHP file may appear 394 if(isset(self::$classMap[$className])) 395 include(self::$classMap[$className]); 396 elseif(isset(self::$_coreClasses[$className])) 397 include(YII_PATH.self::$_coreClasses[$className]); 398 else 399 { 400 // include class file relying on include_path 401 if(strpos($className,'\\')===false) // class without namespace 402 { 403 if(self::$enableIncludePath===false) 404 { 405 foreach(self::$_includePaths as $path) 406 { 407 $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php'; Stack Trace #0 + /var/www/yiiRoot/framework/YiiBase.php(395): YiiBase::autoload() #1 unknown(0): YiiBase::autoload("YumMessage") #2 – /var/www/yii/protected/modules/friendship/models/YumFriendship.php(71): spl_autoload_call("YumMessage") 66 $this->status = 2; 67 if(Yum::hasModule('message') 68 && isset($this->inviter->privacy) 69 && $this->inviter->privacy->message_new_friendship) { 70 Yii::import('application.modules.messages.models.YumMessage'); 71 YumMessage::write($this->inviter, $this->invited, 72 Yum::t('Your friendship request has been accepted'), 73 strtr( 74 'Your friendship request to {username} has been accepted', array( 75 '{username}' => $this->inviter->username))); 76 } #3 – /var/www/yii/protected/modules/friendship/controllers/YumFriendshipController.php(28): YumFriendship->acceptFriendship() 23 if(isset($friendship)) 24 if($friendship->inviter_id == Yii::app()->user->id 25 || $friendship->friend_id == Yii::app()->user->id) 26 if(isset($_POST['YumFriendship']['add_request'])) 27 { 28 $friendship->acceptFriendship(); 29 } elseif(isset($_POST['YumFriendship']['deny_request'])) { 30 $friendship->status = 3; 31 $friendship->save(); 32 } elseif(isset($_POST['YumFriendship']['ignore_request'])) { 33 $friendship->status = 0; #4 + /var/www/yiiRoot/framework/web/actions/CInlineAction.php(49): YumFriendshipController->actionIndex() #5 + /var/www/yiiRoot/framework/web/CController.php(308): CInlineAction->runWithParams(array()) #6 + /var/www/yiiRoot/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction) #7 + /var/www/yiiRoot/framework/web/filters/CFilter.php(40): CFilterChain->run() #8 + /var/www/yiiRoot/framework/web/CController.php(1145): CFilter->filter(CFilterChain) #9 + /var/www/yiiRoot/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain) #10 + /var/www/yiiRoot/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain) #11 + /var/www/yiiRoot/framework/web/CController.php(291): CFilterChain->run() #12 + /var/www/yiiRoot/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl")) #13 + /var/www/yiiRoot/framework/web/CWebApplication.php(282): CController->run("index") #14 + /var/www/yiiRoot/framework/web/CWebApplication.php(141): CWebApplication->runController("friendship/friendship/index") #15 + /var/www/yiiRoot/framework/base/CApplication.php(168): CWebApplication->processRequest() #16 – /var/www/yii/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();