please check all the codes with php before "header" location. make sure no "echo()" function be presented. and you also have to check all the words out of the "<?php ?>" element. there must be nothing even if a space before the "header()".
general error look like the following:
<?php
header("location: ");
?>
because of a space exists before "<?php" ,so the error ocurred