its something related to url
1st bx_check_redirect_to_correct_hostname(true) ---> error (then i comments it)
2nd $sRet .= $oFunctions->getManifests(); ---> error (then i comments it)
3rd basically there is a url problem
$aUrl = parse_url($sUrl);
$aUrl['host'] ---> return null always