PHP warning

Trying to access array offset on value of type null

/home2/coderede/public_html/afrobios/protected/controllers/ArtisteController.php(47)

35     {
36         $this->render('index');
37     }
38 
39     public function actionView()
40     {
41         $artise_name = ($_GET['name']);
42         $model_artiste = Artiste::model()->findByName($artise_name);
43         $userIds = array();
44         $users = Users::model()->findByPk(Yii::app()->user->getId());
45         if (empty($model_artiste))
46             throw new CHttpException(404, 'The specified Artiste cannot be found.');
47         $this->render('view', array("artiste" => $model_artiste, 'userType' => $users['type']));
48     }
49 
50     public function actionPrivacy()
51     {
52         $this->render('privacy');
53     }
54 
55     public function actionClients()
56     {
57         $this->render('clients');
58     }
59 

Stack Trace

#7
+
 /home2/coderede/public_html/afrobios/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();
2024-03-28 15:01:14 Apache Yii Framework/1.1.15