The original private function urlHostRedirect() doesn't allow urls with a port like http://localhost:8888/oxwall
Replace the existing function code with new code below:
private function urlHostRedirect()
{
$urlArray = parse_url(OW_URL_HOME);
// returns an array including the port if it exists in the url OW_URL_HOME
if (isset($urlArray['port']))
{
$my_Host = ($urlArray['host'].':'.$urlArray['port']); // rejoin the host and port to build the url part like localhost:8888
} else {
$my_Host = ($urlArray['host']); // url without port
}
if ( isset($_SERVER['HTTP_HOST']) && ( $_SERVER['HTTP_HOST'] !== $my_Host ) ) // check to see the _SERVER['HTTP_HOST'] not equal to OW_URL_HOME
{
$this->redirect(OW_URL_HOME . OW::getRequest()->getRequestUri()); //redirect to proper url
}
}