What is the full error message?
Thread Starter
dax702
(@dax702)
When attempting to log into the admin backend:
Warning: Cannot modify header information – headers already sent by (output started at /home/robertco/public_html/web/wp-config.php:1) in /home/xxx/public_html/web/wp-login.php on line 353
Warning: Cannot modify header information – headers already sent by (output started at /home/robertco/public_html/web/wp-config.php:1) in /home/xxx/public_html/web/wp-login.php on line 365
Warning: Cannot modify header information – headers already sent by (output started at /home/robertco/public_html/web/wp-config.php:1) in /home/xxx/public_html/web/wp-includes/pluggable.php on line 737
Warning: Cannot modify header information – headers already sent by (output started at /home/robertco/public_html/web/wp-config.php:1) in /home/xxx/public_html/web/wp-includes/pluggable.php on line 738
Warning: Cannot modify header information – headers already sent by (output started at /home/robertco/public_html/web/wp-config.php:1) in /home/xxx/public_html/web/wp-includes/pluggable.php on line 739
Warning: Cannot modify header information – headers already sent by (output started at /home/robertco/public_html/web/wp-config.php:1) in /home/xxx/public_html/web/wp-includes/pluggable.php on line 934
When trying to login as a subscriber on the frontend, these come up in the sidebar area where my login widget is:
Warning: Cannot modify header information – headers already sent by (output started at /home/robertco/public_html/web/wp-config.php:1) in /home/xxx/public_html/web/wp-includes/pluggable.php on line 737
Warning: Cannot modify header information – headers already sent by (output started at /home/robertco/public_html/web/wp-config.php:1) in /home/xxx/public_html/web/wp-includes/pluggable.php on line 738
Warning: Cannot modify header information – headers already sent by (output started at /home/robertco/public_html/web/wp-config.php:1) in /home/xxx/public_html/web/wp-includes/pluggable.php on line 739
The issue is in your wp-config.php file. See Solving “headers already sent” warnings.
Thread Starter
dax702
(@dax702)
I read that faq several times. Here is my wp-config.php file. I cannot find anything wrong with it:
[Code moderated as per the Forum Rules. Please use the pastebin]
Thread Starter
dax702
(@dax702)
Damn, I thought it was this line define( ‘EMPTY_TRASH_DAYS’, 10 ); because it’s using the wrong single quote marks but fixing it didn’t seem to change anything,, ugh!
Thread Starter
dax702
(@dax702)
http://pastebin.com/YW3Reuxh for my wp-config file. It’s showing a blank line at the end, but I think pastebin put that in because there is no blank line in the file……
Thread Starter
dax702
(@dax702)
When attempting to log into the admin backend, it’s showing this too now:
Warning: Cannot modify header information – headers already sent by (output started at /home/xxxx/public_html/web/wp-config.php:1) in /home/robertco/public_html/web/wp-login.php on line 353
Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxx/public_html/web/wp-config.php:1) in /home/robertco/public_html/web/wp-login.php on line 365
Thread Starter
dax702
(@dax702)
Does anyone know the answer to the question I asked about if php files can be changed without their last modified dates changing when looking at them in Filezilla?
Thread Starter
dax702
(@dax702)
Ok, the problem is finally solved. The FAQ article should be changed so that other people don’t pull their hair out like I did:
This statement is entirely incorrect:
Open that file in a plain text editor (NOT MS Word or similar. Notepad or BBEdit are fine).
You CANNOT use Notepad to check these php files. Notepad will NOT display strange characters all the time. I asked a friend for help. He opened the file in HTML Kit http://www.htmlkit.com/ and saw three characters at the beginning of my wp config file. Those characters did not show up no matter how many times I looked at that file in both Windows Notepad and Notepad++.
From now on, I’m not going to edit any php file unless it’s with HTML Kit.
Thread Starter
dax702
(@dax702)
Notepad or BBEdit are fine
Notepad is NOT fine. Using notepad to view the php files caused me to waste over 6 hours. I could have held down backspace at the beginning of that file for all eternity and it wouldn’t have erased the characters.
Thread Starter
dax702
(@dax702)
 those are the three characters
Thanks dax702 … you just helped me out immensely … though mine was also a blank space at the end of wp-config.
thank you dax702
HTML Kit helped me to selove the problem
Squid
(@karimtahtoandpartnersfi)
I have the same problem but can’t see anything with HTML kit. Should I choose to convert the file when opening it on HTML kit tools (my wp-config is in UTF8 obviously)?
All help would be much appreciated.