L
L
lexstile2017-02-15 15:47:28
CMS
lexstile, 2017-02-15 15:47:28

How to fix headers error on hostcms?

218e97034b37499ea7c342bba30444af.JPG
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 question

Ask a Question

731 491 924 answers to any question