You should really redirect before you start page output
  • line 1341 of /lib/outputrenderers.php: call to debugging()
  • line 3105 of /lib/weblib.php: call to core_renderer->redirect_message()
  • line 436 of /lib/setuplib.php: call to redirect()
  • line ? of unknownfile: call to default_exception_handler()