Day 69 – Warning: Cannot modify header information – headers already sent by
Advertisements
Had a great deal of shock just now when i was trying to log into this account for wordpress. And i receive this msg Warning: Cannot modify header information – headers already sent by. I tried with wp-login.php which failed and wp-admin which failed too.
Not matter what method i choose, the error message with the different header will appear. According to http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
It states that the problem is due to additional spaces or commands after “?>” command, “?>” command is supposed to be the last line in a php file. And any characters or lines after this, will cause problems.
Luckily for me, with my tiny little bit of programming skill, i source through my files in file manger and saw spaces and a weird command with a javascript popup after “?>” in pluggable.php
My solution
It was a popup to a website with the keyword “Pshao” in the url. I recalled that it was a photo blog. I delete the command and forgot to paste it in here, in my anxiety to solve this “Warning: Cannot modify header information – headers already sent by” problem.
Just take note, check through pluggable.php, wp-login.php, wp-admin.php and remove any spaces and commands after “?>” Clearing the spaces and rows will solve this login problems for wordpress.
It is not 100% foolproof for the above method. But i have discovered a 90% workabout to solve this problem and this allows me to log in to my dashboard.
- go to domain.com/wp-login.php and enter your username and password
- After typing the correct login details, you should either have an error Warning: Cannot modify header information or
- If the message appear, your wordpress should already have register a cookie on your computer stating you are login.
- Type domain.com/wp-admin You should be sent to the dashboard
For an update, 1 site is up today and i am falling back on schedule with 2 more sites to finish by tomorrow!
Related posts:
- Day 64 – Wordpress Wp admin error and merry xmas
- Adsense Daily Challenge Day 47 – Spurred by Friend and Fast Wordpress Setup
- Adsense Daily Challenge Day 30 – Wordpress Problems
- Adsense Daily Challenge Day 48 – Wordpress Setup Again
- Day 96 97 – RSS Bot Upgrade











