Answer the question
In order to leave comments, you need to log in
How to fix headers error on hostcms?
Such an error gets out, as a result, the page gives the code 200 OK. Need 404.
Base.infosystems.class.php code:
public function Show($order_field = false, $order_direction = false)
{
//Если происходила ошибка инициализации инфосистемы
if($this->system_id == -1)
{
header("HTTP/1.1 404 Not Found");
ToolkitLib::ShowError("Ошибка. С этой страницей не связано информационных систем.");
return false;
}
if($this->group_id == -1)
{
header("HTTP/1.1 404 Not Found");
ToolkitLib::ShowError("Ошибка. Выбрана несуществующая группа.");
return false;
}
................
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question