PHP notice

Trying to get property of non-object

/home/sro-mas/sro-mop.ru/docs/ReestrMOP22/protected/views/site/view.php(5)

01 <?php
02 /* @var $this SiteController */
03 /* @var $model Members */
04 
05 $this->pageTitle = $model->opf.' '.$model->name.' ('.$model->getStateOption($model->state).')';
06 
07 $dataView = array(
08     'model'=>      $model,
09     'sanctions'=>  $sanctions,
10     'auditPlans'=> $auditPlans,
11     'documents'=>  $documents,
12 );
13 
14 function imagefordownload($filename)
15 {
16     $typename = substr(strrchr($filename, "."), 1);
17     if ($typename == "pdf") {

Stack Trace

#4
+
 /home/sro-mas/sro-mop.ru/docs/ReestrMOP22/protected/controllers/SiteController.php(186): CController->render("view", array("model" => null, "sanctions" => CActiveDataProvider, "auditPlans" => CActiveDataProvider, "documents" => CActiveDataProvider))
181 
182         $this->render('view',array(
183             'model'=>$model,
184             'sanctions'=>$sanctions,
185             'auditPlans'=>$auditPlans,
186             'documents'=>$documents,
187         ));
188     }
189 
190     public function actionUpdateDb() {
191         $dir = Yii::app()->basePath.DIRECTORY_SEPARATOR.'update-bd'.DIRECTORY_SEPARATOR;
#14
+
 /home/sro-mas/sro-mop.ru/docs/ReestrMOP22/index.php(17): CApplication->run()
12 defined('YII_DEBUG') or define('YII_DEBUG',true);
13 // specify how many levels of call stack should be shown in each log message
14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
18 
2024-04-16 21:58:04 Apache/2.4.56 (Red Hat Enterprise Linux 8) PHP/7.1.33 Yii Framework/1.1.13