Cannot modify header information during login
-
Business as usual, I tried to login in to my site meaganobrien.com today and I am getting this message preventing me from logging in:
Warning: Cannot modify header information – headers already sent by (output started at /home/content/42/5269742/html/wp-includes/pomo/streams.php:1) in /home/content/42/5269742/html/wp-includes/pluggable.php on line 1207
I searched for a solution and came across this very comprehensive walkthrough from the codex. http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
I tried both the streams.php and pluggable.php files but could not find errors with them.
The last time I successfully logged in to the site a few days ago it was to create a post. I did not alter my code or add a plugin. I may have updated all my plugins.
Please help if you can! This one has really got me baffled.
-
Try turning on debug mode in your wp-config.php file and see if there are any more helpful error messages that come up.
While googling this issue I saw somebody mention increasing memory resolved a similar issue
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHPI turned on debug which I hadn’t done before. Everything it lists looks pretty irrelevant (though I’m not a pro). Will list below.
I increased memory about a month ago for another issue.
I just increased my memory again for good measure to
define( 'WP_MAX_MEMORY_LIMIT', '256M' );This had no effect.
Debug info:
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/42/5269742/html/wp-content/plugins/audio-player/audio-player.php on line 903 Notice: Undefined index: HTTPS in /home/content/42/5269742/html/wp-content/plugins/audio-player/audio-player.php on line 127 Notice: Undefined index: SERVER_PORT_SECURE in /home/content/42/5269742/html/wp-content/plugins/audio-player/audio-player.php on line 127 Notice: Use of undefined constant ’the_date’ - assumed '’the_date’' in /home/content/42/5269742/html/wp-content/plugins/date-exclusion.php on line 36 Notice: Use of undefined constant ‘the_time’ - assumed '‘the_time’' in /home/content/42/5269742/html/wp-content/plugins/date-exclusion.php on line 36 Notice: Use of undefined constant ‘get_the_time’ - assumed '‘get_the_time’' in /home/content/42/5269742/html/wp-content/plugins/date-exclusion.php on line 36 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the "Sidebar" sidebar. Defaulting to "sidebar-1". Manually set the id to "sidebar-1" to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/content/42/5269742/html/wp-includes/functions.php on line 3622 Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead. in /home/content/42/5269742/html/wp-includes/functions.php on line 3457  Notice: Undefined variable: slider_arr in /home/content/42/5269742/html/wp-content/themes/MeaganMiniPortfolio/index.php on line 36I just read in a couple posts that if pluggable is involved that it’s likely a plugin conflict.
I would suggest renaming the plugin directory and create an empty one and then try to log in. If you can log in then delete the new plugin directory and rename the old one back and then slowly re-activate them to test them.
Thanks for the responses. I tried renaming the plugin in directory just now and this did not work.
I host about 5 wordpress sites from the same hosting. All five sites have this issue and have been hacked into. The post area is flooded with spam. You can see this at these sites:
http://pushevolve.com/
http://portraitforastory.com/
With headlines like “Whats A Good Website To Get Instagram Followers quality”I didn’t notice it before because my site doesn’t prominently feature a blog area and those do.
This is clearly a spammer hacker problem and I have a feeling it’s not meant to be easy to fix. Any help from the community would be welcome. I hope not to lose all my sites.
So I restored a back up from 9 days ago as it’s the last time I remember making changes to the site. My main site, meaganobrien.com, is now completely fine and fixed.
The other four sites on my hosting when visiting wp-admin or wp-login.php show a white screen that only says “Could not connect to server” with no more information.
I am now looking into this issue.
The topic ‘Cannot modify header information during login’ is closed to new replies.