Log out and redirect to different URL

To understand why your redirect isn’t working, you should consider the mechanism it’s using: the Location HTTP header. The problem here is that HTTP headers cannot be sent once you begin outputting content onto the page. Your task is to determine where that content is being output.

  1. Is it a plugin? Try disabling all your plugins and see if that fixes it.
  2. Is it your theme? Try switching to a different theme (modify it to use your logout hook) and see if that fixes it.

See also: http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F