PHP Error

Trying to get property of non-object

/home/c/cb69283/public_html/themes/classic/frontend/views/modules/catalog/default/views.php(33)

21             $catalogUrl = Yii::app()->createUrl('catalog/default/sort', array('type' => $firstEquipment->id));
22             $this->breadcrumbs[Yii::t('app', 'По типу')] = $catalogUrl;
23         }
24         $firstEquipment = Equipment::model()->getFirst();
25         $firstUrl = Yii::app()->createUrl('catalog/default/sort', array('type' => $firstEquipment->id));
26         $this->breadcrumbs = array(Yii::t('app','Каталог продукции') => $firstUrl) + $this->breadcrumbs;
27     foreach ($title as $item)
28     {
29         if ($action!='producers'&&$item->parent_id==0&&count($title)>1) {
30             $this->breadcrumbs[$item->title] = Yii::app()->createUrl('catalog/default/sort', array($action=> $item->id));
31         }
32         else
33             $this->breadcrumbs[] = $item->title;
34     }
35 ?>
36 
37 <div class="container item_full_list long-width">
38     <div class="equipment">
39             <p><?php echo Yii::t('app', 'ОБОРУДОВАНИЕ'); ?>:</p>
40         <ul>
41                     <?php
42                         $active = array(
43                             0 => '',
44                             1 => '',
45                             2 => ''

Stack Trace

#4
+
 /home/c/cb69283/public_html/protected/modules/catalog/controllers/DefaultController.php(97): CController->render("views", array("model" => Entries, "block" => array("left" => array("type" => 1), "right" => array("industries" => 1, "producers" => 0)), "title" => array(null), "action" => "producers", ...))
092                         'block' => $block,
093                         'title' => isset($title) ? $title : '',
094                         'action' => isset($action) ? $action : '',
095                         'category' => isset($category) ? $category : '',
096                         'description' => $description
097                     ));
098                 }
099     }
100 
101     public function actionSearch($view = null)
102     {
#12
+
 /home/c/cb69283/public_html/index.php(36): CApplication->run()
31         break;
32 }
33 ini_set('display_errors', 1);
34 ini_set('display_startup_errors', 1);
35 error_reporting(E_ALL);
36 Yii::createWebApplication($config)->run();
37 
38 
2024-03-28 23:01:36 Apache/2.4.29 Yii Framework/1.1.8