TPhpErrorException

Description

[Warning] preg_replace(): No ending delimiter '-' found (@line 31 in file /home/express/public_html/protected/Portlets/Breadcrumbs.php).

Source File

/home/express/public_html/protected/Portlets/Breadcrumbs.php (31)

0020:         }else
0021:         {
0022:         $CatString = $this->Request["UniqueMainCategoryName"];        
0023:         $CatRecSearch = $ModuleMap->queryForObject("GetCategoryIdFromUniqueCategoryName",array('UniqueMainCategoryName'=>$CatString));
0024:         $FindCatID = $CatRecSearch;
0025:         }
0026:         if(!empty($FindCatID))
0027:         {
0028:         $CatDetails = $ModuleMap->queryForList("GetCategoryName_For_ProductList",array('cid'=>$FindCatID));
0029:         $CatDetails01 = $ModuleMap->queryForObject("GetCategoryAllDetails_For_ProductList",array('cid'=>$FindCatID));
0030:         //$breadarray[] = array('PageName'=>'ProductList','PageText'=>$CatDetails[0],'PageFields'=>array('UniqueCategoryName'=>$CatDetails01['UniqueMainCategoryName']));
0031: $breadarray[] = array('PageName'=>'ProductList','PageText'=>ucwords(preg_replace("-"," ",$this->Request["UniqueMainCategoryName"])),'PageFields'=>array('UniqueMainCategoryName'=>strtolower($CatDetails01['UniqueMainCategoryName'])));
0032: } 0033: //For thank you category 0034: if($this->Request["page"]=="ThankYouProductList") 0035: { 0036: $breadarray[] = array('PageName'=>'ThankYouProductList','PageText'=>'thank you cards','PageFields'=>array()); 0037: } 0038: if(!empty($this->Request['ProductID'])) 0039: { 0040: $ProductDetails = $ModuleMap->queryForList("Get_Product_By_ProductID_For_ProductDetail",array('pid'=>$this->Request['ProductID'])); 0041: $cid = $ProductDetails[0]['CategoryID']; 0042: if(empty($cid)) 0043: $cid = $this->Request['CategoryID'];

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'preg_replace():...', '/home/express/p...', 31, Array)
#1 /home/express/public_html/protected/Portlets/Breadcrumbs.php(31): preg_replace('-', ' ', 'party-invitatio...')
#2 /home/express/framework/Web/UI/TControl.php(1286): Breadcrumbs->onLoad(NULL)
#3 /home/express/framework/Web/UI/TControl.php(1293): TControl->loadRecursive()
#4 /home/express/framework/Web/UI/TControl.php(1293): TControl->loadRecursive()
#5 /home/express/framework/Web/UI/TControl.php(1293): TControl->loadRecursive()
#6 /home/express/framework/Web/UI/TControl.php(1293): TControl->loadRecursive()
#7 /home/express/framework/Web/UI/TPage.php(215): TControl->loadRecursive()
#8 /home/express/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#9 /home/express/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#10 /home/express/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(SubSiloMetaContent), Array)
#11 /home/express/framework/TApplication.php(1095): TPageService->run()
#12 /home/express/framework/TApplication.php(382): TApplication->runService()
#13 /home/express/public_html/index.php(21): TApplication->run()
#14 {main}
2017-06-27 08:51 Apache/2.4.18 (Ubuntu) PRADO/3.1.7