Error

Call to a member function getUrl() on null

/home/a0770068/domains/tdolvi.ru/public_html/themes/default/views/catalog/_head.php(5)

1     <a href="/catalog"><?=Filter::labels('items')?>  →</a>
2     <?
3         $count=count($chain)-1;
4         foreach ($chain as $key => $data) {
5             echo CHtml::link($data->name.($count!=$key ? '→' : ''),$data->getUrl()).' ';
6         }
7     ?>
8     <h1 class="title"><?=$model->name?></h1>

Stack Trace

#3
+
 /home/a0770068/domains/tdolvi.ru/public_html/themes/default/views/catalog/view.php(6): CController->renderPartial("//catalog/_head", array("model" => Catalog, "chain" => array(null, Catalog)), true)
01 <div class="content bot">
02 <?=$this->renderPartial('//layouts/_stock',array('model'=>Stock::active()))?>
03 <?//=$this->renderPartial('index',array('products'=>$products,'tags'=>false))?>
04 <div class="section">
05         <div class="head">    
06             <?=$this->renderPartial('//catalog/_head',array('model'=>$model,'chain'=>$chain),true)?>
07         </div>
08         <div class="catalog-wrap">
09             <div class="categories">
10                 <?$this->renderPartial('filter',array('cats'=>$cats,'chain'=>$chain));?>
11             </div>
#8
+
 /home/a0770068/domains/tdolvi.ru/public_html/protected/controllers/CatalogController.php(97): CController->render("view", array("products" => array(Catalog, Catalog, Catalog, Catalog, ...), "model" => Catalog, "chain" => array(null, Catalog), "dataProvider" => CActiveDataProvider, ...))
092                 'products'=>$products,
093                 'model'=>$model,
094                 'chain'=>$chain,
095                 'dataProvider'=>$dataProvider,
096                 'cats'=>$cats,
097                 'sort'=>$_GET['Order']['sort'] ? $_GET['Order']['sort'] : 1
098             )
099         );
100     }
101 
102     public function actionGetFilter(){
#18
+
 /home/a0770068/domains/tdolvi.ru/public_html/index.php(13): CApplication->run()
08 
09 defined('YII_DEBUG') or define('YII_DEBUG',$params['yii.debug']);
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',$params['yii.trace_level']);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 16:33:20 Apache/2.4.6 Yii Framework/1.1.16