PHP warning

Creating default object from empty value

/home/dev1/public_html/protected/views/site/product_details.php(100)

088         
089         echo "<h4 style='position: relative; top: -15px;'><a href='".Yii::app()->request->baseURL."/index.php/site/catalogues?cid=0'>Root category</a> > ".$linkage."</h4>";    
090     } else {
091         echo "<h4 style='position: relative; top: -15px;'><a href='".Yii::app()->request->baseURL."/index.php/site/catalogues?cid=0'>Root category</a></h4>";
092     }
093     
094     echo '</div>';
095     
096     //Process product image thumbnail
097     $rootpath = preg_replace("/\/$/", "", $_SERVER['DOCUMENT_ROOT']);
098     
099     if($Product->ImagePath == ""){
100         $Product->ImagePath = "no_image.png";
101     }
102     
103     $imagepath = $rootpath.Yii::app()->request->baseURL."/ace_product_images/".$Product->ImagePath;
104     $imageurl = Yii::app()->request->baseURL."/ace_product_images/".$Product->ImagePath;
105 ?>
106 
107     <div style="width: 100%;">
108         <div class="grid_3">
109             <?php echo "<a href='$imageurl' rel='prettyPhoto' title='$Product->Name<br />$Product->Description'><img class='Product-thumbnail' src='$imageurl' width='150px' alt='$Product->Name' title='$Product->Name' border='0' /></a>"; ?>
110         </div>
111         <div class="grid_6">
112             <?php 

Stack Trace

#4
+
 /home/dev1/public_html/protected/controllers/SiteController.php(556): CController->render("product_details", array("cid" => "28", "Product" => null, "IsFeatureProduct" => 0))
551         $pid = (isset($_REQUEST['pid'])) ? $_REQUEST['pid'] : 0;
552         
553         $Product = Products::model()->findByPK($_REQUEST['pid']);
554         $FeaturedProducts = FeaturedProducts::model()->findAll('ProductID=:pid', array(':pid' => $_REQUEST['pid']));
555         
556         $this->render('product_details', array('cid' => $cid, 'Product' => $Product, 'IsFeatureProduct' => sizeOf($FeaturedProducts)));
557     }
558     
559     
560     public function actionDesignerguide(){
561         $this->redirect(Yii::app()->params['TinyMCE_DesignerGuideURL']);
#12
+
 /home/dev1/public_html/index.php(39): CApplication->run()
34 // specify how many levels of call stack should be shown in each log message
35 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
36 
37 require_once($yii);
38 require_once($global);
39 Yii::createWebApplication($config)->run();
2024-03-29 03:17:45 Apache/2.4.48 (Unix) OpenSSL/1.0.2k-fips Yii Framework/1.1.14