TPhpErrorException

Description

[Warning] preg_replace(): No ending delimiter ''' found (@line 213 in file /home/instyle/public_html/protected/Common/WPage.php).

Source File

/home/instyle/public_html/protected/Common/WPage.php (213)

0202: 
0203:                     else if((!empty($this->Request['UniqueMainCategoryName']))&&(!empty($this->Request['SiloCategoryName'])))
0204: 
0205:                     {
0206: 
0207:                         //$metatagdisplay = preg_replace("/-/"," ",$this->Request['SiloCategoryName']);
0208: 
0209:                          $UniqueMainCategoryName = $this->Request["UniqueMainCategoryName"];
0210: 
0211:                          $this->CategoryId = $ModuleMap->queryForObject("GetCategoryIdFromUniqueCategoryName",array('UniqueMainCategoryName'=>$UniqueMainCategoryName));
0212: 
0213: $metatagdisplay= preg_replace("'","\'",preg_replace("/-/"," ",$this->Request['SiloCategoryName']));
0214: 0215: $MetaTagDetails = $ModuleMap->queryForObject("Get_SubCategoryName_Content",array('SiloCategoryName'=>$metatagdisplay,'CategoryID'=>$this->CategoryId)); 0216: 0217: $ModuleMap->getSqlMapManager()->getMappedStatement("Get_SubCategoryName_Content")->getSqlString(); 0218: 0219: }else 0220: 0221: { 0222: 0223: $MetaTagDetails = $ModuleMap->queryForObject("GetContentFor_By_PageName",array('pname'=>$pagename)); 0224: 0225: if(count($MetaTagDetails) > 0)

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'preg_replace():...', '/home/instyle/p...', 213, Array)
#1 /home/instyle/public_html/protected/Common/WPage.php(213): preg_replace(''', '\\'', 'graduation phot...')
#2 /home/instyle/framework-3.10/Web/UI/TControl.php(1270): WPage->onInit(NULL)
#3 /home/instyle/framework-3.10/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#4 /home/instyle/framework-3.10/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#5 /home/instyle/framework-3.10/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#6 /home/instyle/framework-3.10/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#7 /home/instyle/framework-3.10/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#8 /home/instyle/framework-3.10/Web/Services/TPageService.php(444): TPageService->runPage(Object(SubSiloMetaContent), Array)
#9 /home/instyle/framework-3.10/TApplication.php(1095): TPageService->run()
#10 /home/instyle/framework-3.10/TApplication.php(382): TApplication->runService()
#11 /home/instyle/public_html/index.php(21): TApplication->run()
#12 {main}
2017-06-27 00:07 Apache/2.4.18 (Ubuntu) PRADO/3.1.10