You should really redirect before you start page output
  • line 826 of /lib/classes/output/core_renderer.php: call to debugging()
  • line 2228 of /lib/weblib.php: call to core\output\core_renderer->redirect_message()
  • line 422 of /login/index.php: call to redirect()