PHP notice

Trying to get property of non-object

/var/www/horsewinch.ru/www/protected/modules/shop/controllers/ViewController.php(180)

168             'condition' => 'url = :url',
169             'params' => array(
170                 ':url' => $catalogUrl,
171             ),
172         ));
173 
174 
175         //$this->currentHeaderImageCode = LrCatalog::getRootModelCode($catalogProduct);
176 
177         $articleItem = LrArticle::model()->find(array(
178             'condition' => 'article = :article',
179             'params' => array(
180                 ':article' => $catalogProduct->article
181             ),
182         ));
183 
184         $this->pageTitle = strip_tags($catalogProduct->title ? $catalogProduct->title : ($articleItem->title ? $articleItem->title : $catalogProduct->name) );
185 
186         $this->render('product', array(
187             'product' => $catalogProduct,
188         ));
189     }
190 
191     public function actionArticle($code)
192     {

Stack Trace

#9
+
 /var/www/horsewinch.ru/www/index.php(58): CApplication->run()
53     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
54 }
55 
56 
57 require_once($yii);
58 Yii::createWebApplication($config)->run();
2024-03-28 17:31:25 nginx/1.18.0 Yii Framework/1.1.14