Error

Call to a member function getPriceHtml() on null

/home/setarafarm/public_html/themes/setara/views/products/productDetails.php(46)

34                             echo '<span class="label label-default" style="padding: 5px 10px">Stock Out</span>';
35                         }
36                         ?>
37                     </h1>
38 
39                     <div class="rating-section" style="display: none">
40                         <div class="rating">
41                             <img src="<?= Yii::app()->request->baseUrl; ?>/upload/star<?= $rowProduct->rating_point ?>.png" alt=""/>
42                         </div>
43                     </div>
44 
45                     <div class="col-md-12" style="font-weight:bold; padding: 0px 0px 10px; font-size: 120%; margin-top: 10px">
46                         <?= $rowProduct->getPriceHtml()?>
47                     </div>
48 
49                     <?php if(floatval($rowProduct->quantity)>0):?>
50 
51 
52                     <div class="short-description" style="display: none">
53                         <strong><?= Yii::t(Yii::app()->request->cookies['lang']->value, 'Stock') ?></strong> <?= $rowProduct->quantity ?><?= $rowProduct->quantifire ?>
54                     </div>
55 
56                     <div class="products-price row" style="display: none;">
57                         <div class="col-sm-6">
58                             <div class="pricebold">৳ <?= $rowProduct->buy_price ?> /<span><?= $rowProduct->quantifire ?></span></div>

Stack Trace

#4
+
 /home/setarafarm/public_html/protected/controllers/ProductsController.php(282): CController->render("productDetails", array("rowProduct" => null, "data" => array("id" => null), "model" => SellBuyRequest))
277         }
278 
279         $this->render('productDetails', array(
280             'rowProduct' => $model,
281             'data' => $data,
282             'model' => $modelSellBuy,
283         ));
284         Yii::app()->end();
285     }
286 
287 
#19
+
 /home/setarafarm/public_html/index.php(31): CApplication->run()
26 // specify how many levels of call stack should be shown in each log message
27 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
28 
29 require_once($yii);
30 
31 Yii::createWebApplication($config)->run();
2024-03-28 12:45:59 Apache Yii Framework/1.1.28