Error

Description

Call to undefined function ereg_replace()

Source File

/home/holiday/public_html/protected/pages/SubSiloMetaContent.php (39)

0028:                     $description1 = strip_tags( $MetaTagDetails['Description'] );
0029:                     $title1 = strip_tags( $MetaTagDetails['PageTitle'] );
0030:                 }
0031:             }
0032:             if (! empty( $this->Request['UniqueSubCategoryName'] ))
0033:             {
0034:                 $metatagdisplay = explode( "-", $this->Request['UniqueSubCategoryName'] );
0035:                 $MetaTagDetails = $ModuleMap->queryForObject( "GetContentBySubCategoryName", array( 'UniqueSubCategoryName' => implode( "-", $metatagdisplay ) ) );
0036:             }             // For sub silo
0037:             else if ((! empty( $this->Request['UniqueMainCategoryName'] )) && (! empty( $this->Request['SiloCategoryName'] )))
0038:             {
0039: $metatagdisplay = ereg_replace( "-", " ", $this->Request['SiloCategoryName'] );
0040: $MetaTagDetails = $ModuleMap->queryForObject( "Get_SubCategory_Content", array( 'SiloCategoryName' => $metatagdisplay ) ); 0041: } else if (! empty( $this->Request['UniqueMainCategoryName'] )) 0042: { 0043: $metatagdisplay = $this->Request['UniqueMainCategoryName']; 0044: $MetaTagDetails = $ModuleMap->queryForObject( "GetContentByCategoryName", array( 'UniqueMainCategoryName' => $metatagdisplay ) ); 0045: } 0046: if (count( $MetaTagDetails ) > 0) 0047: { 0048: $keyword1 = strip_tags( $MetaTagDetails['Keyword'] ); 0049: $description1 = strip_tags( $MetaTagDetails['Description'] ); 0050: $title1 = strip_tags( $MetaTagDetails['PageTitle'] ); 0051: } else

Stack Trace

#0 /home/holiday/framework-3.10/Web/UI/TControl.php(1270): SubSiloMetaContent->onInit(NULL)
#1 /home/holiday/framework-3.10/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(SubSiloMetaContent))
#2 /home/holiday/framework-3.10/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#3 /home/holiday/framework-3.10/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#4 /home/holiday/framework-3.10/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#5 /home/holiday/framework-3.10/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#6 /home/holiday/framework-3.10/Web/Services/TPageService.php(444): TPageService->runPage(Object(SubSiloMetaContent), Array)
#7 /home/holiday/framework-3.10/TApplication.php(1095): TPageService->run()
#8 /home/holiday/framework-3.10/TApplication.php(382): TApplication->runService()
#9 /home/holiday/public_html/index.php(20): TApplication->run()
#10 {main}
2017-05-30 03:03 Apache/2.4.18 (Ubuntu) PRADO/3.1.10