PHP warning

Attempt to read property "name" on null

/home/GIR/adaptive.innoeco.ru/wwwdata/protected/modules/catalog/views/site/buy.php(44)

32                         </label>
33                         <label class="message">
34                             <textarea name="BuyForm[msg]">Сообщение:</textarea>
35 
36                         </label>
37                         <div class="success" style="display: none;">Представленная форма контакта!<br>
38                             <strong>Мы скоро Вам ответим.</strong>
39                         </div>
40                         <div class="buttons2">
41                             <a href="javascript:;" data-type="reset" class="button" onClick="document.getElementById('contact-form').reset();"><span>сбросить</span></a>
42                             <a href="javascript:;" data-type="submit" class="button green" onClick="document.getElementById('contact-form').submit();">отправить</a>
43                         </div>
44                         <input name="BuyForm[model]" type="hidden" value="<?php echo $item->name;?>">
45                     </fieldset>
46 
47                 <?php $this->endWidget(); ?>
48             </article>
49             <article class="grid_9 prefix_1">
50                <span class="map_wrapper">
51                   <img src="<?php  echo $pBox->getImage(0,'main');?>" class="textImg" alt="">
52                </span>
53                 <h1><?php  echo $item->name;?></h1>
54                 <div class="kol_vo">
55 <!--                    <span>Количество:</span>-->
56 <!--                    <a href="javascript:;" class="button green">–</a>-->

Stack Trace

#4
+
 /home/GIR/adaptive.innoeco.ru/wwwdata/protected/modules/catalog/controllers/SiteController.php(296): CController->render("buy", array("id" => "613", "item" => null, "buyFormModel" => BuyForm))
291                 $this->render('buyOk', array('id' => $itemId, 'item' => $item, 'buyFormModel' => $buyFormModel));
292             }
293 
294         }
295 
296         $this->render('buy', array('id' => $itemId, 'item' => $item, 'buyFormModel' => $buyFormModel));
297     }
298 
299     /**
300      * Отображение страницы корзины
301      */
#14
+
 /home/GIR/adaptive.innoeco.ru/wwwdata/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG', true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
13 
14 require_once $yii;
15 $app = Yii::createWebApplication($config)->run();
2024-03-29 00:09:53 nginx/1.24.0 Yii Framework/1.1.30-dev