CException

Alias "comment.widgets.CommentForm" is invalid. Make sure it points to an existing PHP file and the file is readable.

/home/moshaverne/domains/moshavernews.ir/yii/framework/YiiBase.php(322)

310         if($isClass && (class_exists($className,false) || interface_exists($className,false)))
311             return self::$_imports[$alias]=$className;
312 
313         if(($path=self::getPathOfAlias($alias))!==false)
314         {
315             if($isClass)
316             {
317                 if($forceInclude)
318                 {
319                     if(is_file($path.'.php'))
320                         require($path.'.php');
321                     else
322                         throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.',array('{alias}'=>$alias)));
323                     self::$_imports[$alias]=$className;
324                 }
325                 else
326                     self::$classMap[$className]=$path.'.php';
327                 return $className;
328             }
329             else  // a directory
330             {
331                 if(self::$_includePaths===null)
332                 {
333                     self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));
334                     if(($pos=array_search('.',self::$_includePaths,true))!==false)

Stack Trace

#3
+
 /home/moshaverne/domains/moshavernews.ir/public_html/protected/modules/publisher/views/article/view.php(31): CBaseController->widget("comment.widgets.CommentForm", array("id" => "1131", "Module_Name" => "publisher", "Controller_Name" => "article", "Action_Name" => "view"))
26                 'id'=>$model->article_id,
27                 'Module_Name'=>'publisher',
28                 'Controller_Name'=>'article',
29                 'Action_Name'=>'view',
30             //   'render'=>'NoPosition',//in file {position}.php
31         ));
32 ?>
#6
+
 /home/moshaverne/domains/moshavernews.ir/public_html/protected/modules/publisher/controllers/ArticleController.php(35): CBaseController->renderFile("/home/moshaverne/domains/moshavernews.ir/public_html/protected/m...", array("model" => Article), true)
30         $title=Yii::app()->input->xssClean($_GET['title']);    
31         $model=$this->loadModel($id,$title);
32         $model->IncVisitCount($model->article_id);
33         $this->pageTitle=$model->title;
34         $viewfile=BlockHelper::ThemeView();
35         $Content = $this->renderFile($this->getViewFile($viewfile), array('model'=>isset($model) ? $model : ''), true);
36         $action_view=BlockHelper::GetActionContentView();
37         if(!empty($model->summary))
38             $metaDescription=$model->summary;
39         else
40             $metaDescription=$model->description;
#21
+
 /home/moshaverne/domains/moshavernews.ir/public_html/index.php(9): CApplication->run()
4 // remove the following lines when in production mode
5 defined ( 'YII_DEBUG' ) or define ( 'YII_DEBUG', true );
6 // specify how many levels of call stack should be shown in each log message
7 defined ( 'YII_TRACE_LEVEL') or define ( 'YII_TRACE_LEVEL', 3 );
8 require_once ($yii);
9 Yii::createWebApplication($config )->run();
2024-03-19 14:53:58 Apache/2 Yii Framework/1.1.14