PHP error

Non-static method ModArticlesNewsEvents::GetImagePath() should not be called statically

/home/petrain1/public_html/petra-intergrasi.co.id/protected/views/front/post/views.php(36)

24             <!-- LEFT COL !-->
25             <div class="col-md-12">            
26                 <?php 
27                     if(Yii::app()->language == 'en')
28                     {
29                         echo "<h3 class='title'>".$model->title_en."</h2>";
30                     }
31                     elseif(Yii::app()->language == 'id')
32                     {
33                         echo "<h3 class='title'>".$model->title_id."</h2>";    
34                     }
35                 ?>        
36                 <?php echo CHtml::image(ModArticlesNewsEvents::GetImagePath($model->id),$model->title_en);?>
37                 <?php 
38                     if(Yii::app()->language == 'en')
39                     {
40                         echo $model->content_en;
41                     }
42                     elseif(Yii::app()->language == 'id')
43                     {
44                         echo $model->content_id;
45                     }
46                 ?>                
47             </div>
48             <div class="toolIcon pull-right">

Stack Trace

#4
+
 /home/petrain1/public_html/petra-intergrasi.co.id/protected/controllers/front/PostController.php(64): CController->render("views", array("model" => ModArticlesNewsEvents))
59         else
60         {
61             Yii::app()->clientScript->registerMetaTag(Yii::app()->request->hostInfo.Yii::app()->baseUrl.ModSettings::model()->find()->logo_image,null,null,array('property'=>'og:image'));
62         }
63         $this->UpdateViews(Yii::app()->session['sessionid'],$Id);
64         $this->render('views',array('model'=>$model));
65     }
66     function UpdateViews($sessioncode,$article_id)
67     {
68         //check first
69         $model = ModArticlesNewsEventsViews::model()->find("article_id = '{$article_id}' and session_code = '{$sessioncode}'");
#14
+
 /home/petrain1/public_html/petra-intergrasi.co.id/protected/components/WebApplicationEndBehavior.php(25): CApplication->run()
20         // Attach the changeModulePaths event handler
21         // and raise it.
22         $this->onModuleCreate = array($this, 'changeModulePaths');
23         $this->onModuleCreate(new CEvent($this->owner));
24   
25         $this->owner->run(); // Run application.
26     }
27   
28     // This event should be raised when CWebApplication
29     // or CWebModule instances are being initialized.
30     public function onModuleCreate($event)
#16
+
 /home/petrain1/public_html/petra-intergrasi.co.id/frontend.php(10): CComponent->__call("runEnd", array("front"))
05 // Remove the following lines when in production mode
06 defined('YII_DEBUG') or define('YII_DEBUG', true);
07 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
08   
09 require_once($yii);
10 Yii::createWebApplication($config)->runEnd('front');
2024-03-19 16:00:31 LiteSpeed Yii Framework/1.1.14