You should really redirect before you start page output
  • line 1336 of /lib/outputrenderers.php: call to debugging()
  • line 3115 of /lib/weblib.php: call to core_renderer->redirect_message()
  • line 2787 of /liblib.php: call to redirect()
  • line 14 of /theme/service/classes/output/core/course_renderer.php: call to require_login()
  • line 137 of /index.php: call to theme_service\output\core\course_renderer->frontpage()