PHP notice

Trying to get property of non-object

/home/h903127343/sroaukcion.ru/docs/reestr/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/h903127343/sroaukcion.ru/docs/reestr/protected/controllers/SiteController.php(207): CController->render("view", array("model" => null, "sanctions" => CActiveDataProvider, "auditPlans" => CActiveDataProvider, "documents" => CActiveDataProvider))
202 
203         $this->render('view',array(
204             'model'=>$model,
205             'sanctions'=>$sanctions,
206             'auditPlans'=>$auditPlans,
207             'documents'=>$documents,
208         ));
209     }
210 
211     public function actionUpdateDb() {
212         $dir = Yii::app()->basePath.DIRECTORY_SEPARATOR.'update-bd'.DIRECTORY_SEPARATOR;
#14
+
 /home/h903127343/sroaukcion.ru/docs/reestr/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();
14 ?>
2024-03-28 23:56:56 Apache/2.4.56 (Red Hat Enterprise Linux 8) PHP/7.0.33 Yii Framework/1.1.13