Did you use the admin panel editor? If so there is a bug that puts whitespace after the end of the script that can result in the headers already sent error. Pull down the file and edit it with a text editor like notepad.exe or some such thing. You will likely find white space after the closing php tag:
?>
Delete the whitespace and reupload. That should fix your problem.