You should really redirect before you start page output
  • line 826 of /lib/classes/output/core_renderer.php: call to debugging()
  • line 2229 of /lib/weblib.php: call to core\output\core_renderer->redirect_message()
  • line 144 of /lib/setuplib.php: call to redirect()
  • line ? of unknownfile: call to default_exception_handler()