I'm having problem to login to my dashboard.There is always this message on top of the page.
Warning: Cannot modify header information - headers already sent by
(output started at
on line 7.Somebody gave this solution but I don't know how to reset this.Could anyone be of help? I have being battling with this for days now. Reason and Solution :
It is usually because there are spaces, new lines, or other garbage before
an opening <?php tag or after a closing ?> tag, typically in
This could be true about some other file too, so please check the error
message, as it will list the specific file name where the error occurred
(see "Interpreting the Error Message" below). Replacing the faulty file
with one from your most recent backup or one from a fresh WordPress
download is your best bet, but if neither of those are an option, please
follow the steps below.
Just because you cannot see anything does not mean that PHP sees the same.
Download the file mentioned in the error message.
Open that file in a plain text editor (NOT MS Word or similar. Notepad or
BBEdit are fine).
Check that the very first characters are <?php
Check that the very last characters are ?>
To be sure about the end of the file, do this:
Place the cursor between the ? and >
Now press the DELETE key on your computer
Note to MAC users: The "DELETE" key on a PC deletes characters to the
right of the cursor. That is the key noted here.
Keep that key pressed
For at least 15 seconds
Now type > and
save without pressing any other key at all.
If you press another key, you will bring the problem back.
Also check the encoding of the file. If the file is encoded as UTF-8 with
BOM, the BOM is seen as a character which starts the output.
Thanks for your kind gesture.