Well, you've got to be outputting something before that line, because the headers are already gone.... Otherwise you wouldn't be getting the error....
BTW, this is really slow and unecessary:
- PHP: Select all
header(sprintf("Location: %s", $insertGoTo));
I would do something like this:
- PHP: Select all
header('Location: '.$insertGoTo);