PHP warning

array_push() expects parameter 1 to be array, null given

/var/www/eurotour/data/www/eurotour-group.ru/protected/views/layouts/excursion/excursion_regular.php(20)

08       ['defer'=>true]
09     );
10 ?>
11 
12 <?php
13     $rating = $model->getAverageRatingAndNumRows();
14 ?>
15 
16 <?php 
17   array_push($breadcrumbs, [
18     'href'=>'#',
19     'name'=>$model->name
20   ]);
21 
22   $this->renderPartial('//layouts/excursion/_topExcursion', [
23     'model' => $model,
24     'breadcrumbs' => $breadcrumbs,
25   ]);
26 ?>
27 
28 <?php 
29   $this->renderPartial('//layouts/excursion/_aboutExcursion', [
30     'model' => $model,
31     'individual' => $isIndividual
32   ]);

Stack Trace

#0
+
 /var/www/eurotour/data/www/eurotour-group.ru/protected/views/layouts/excursion/excursion_regular.php(20): array_push(null, array("href" => "#", "name" => "Кутна Гора "))
15 
16 <?php 
17   array_push($breadcrumbs, [
18     'href'=>'#',
19     'name'=>$model->name
20   ]);
21 
22   $this->renderPartial('//layouts/excursion/_topExcursion', [
23     'model' => $model,
24     'breadcrumbs' => $breadcrumbs,
25   ]);
#5
+
 /var/www/eurotour/data/www/eurotour-group.ru/protected/modules/excursion/controllers/DefaultController.php(71): CController->render("//layouts/excursion/excursion_regular", array("model" => Excursion, "is_individual" => false))
66         if ( ($category_url == 'individual') OR ($category_url == 'individualnye') ) {
67             $is_individual = true;
68         }
69         //$this->render('view', compact('model','is_individual'));
70         //$this->render('//layouts/excursion/excursion', compact('model','is_individual'));
71         $this->render('//layouts/excursion/excursion_regular', compact('model','is_individual'));
72     }
73 
74     public function actionViewIndividual($category_url, $url) {
75         $this->actionView($category_url, $url, true);
76     }
#11
+
 /var/www/eurotour/data/www/eurotour-group.ru/protected/modules/UserAdmin/components/UAccessController.php(34): CFilterChain->run()
29             // If this controller or this action if free to access for everyone
30             $filterChain->run();
31         } elseif (Yii::app()->user->isGuest) {
32             // User is guest
33             if ($this->_isRouteAllowed($this->_getGuestAllowedRoutes())) {
34                 $filterChain->run();
35             } else {
36                 Yii::app()->user->returnUrl = array('/'.$this->route);
37                 $this->redirect(Yii::app()->user->loginUrl);
38             }
39         } elseif (User::checkRole('isSuperAdmin')) {
2024-03-28 08:27:06 Apache/2.4.10 (Debian) Yii Framework/1.1.13