Another "Cannot modify header information – headers already sent by"
-
I have a WP site running locally using MAMP. I’ve been working on the site for several weeks without issue on either the public or admin site. But tonight when I started up Firefox, the I was unable to log into the admin. I can see the public site at http://localhost:8888/, as well as the admin login page http://localhost:8888/wp-login.php. But I get a blank screen when I try logging in.
My PHP error log shows:
PHP Warning: Cannot modify header information - headers already sent by (output started at /Work/Emerald/www-wordpress/wp-content/themes/themename/functions.php:9) in /Work/themename/www-wordpress/wp-login.php on line 353/wp-includes/pluggable.phpalso shows an error in the php log. I checked these files, but I don’t really know what I’m looking at (and haven’t changed them since install).I’ve tried:
- http://codex.ww.wp.xz.cn/Answers-Trouble_Shooting#Headers_already_sent
- http://codex.ww.wp.xz.cn/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
- Replacing all WordPress files except for ‘wp-content’
- Restarting all MAMP wservers
- Restarting my computer. I had to try 🙂
Still getting the same errors. I have a handful of plugins, but the php errors didn’t coincide with activating one.
What could have happened? What else can I try?
The topic ‘Another "Cannot modify header information – headers already sent by"’ is closed to new replies.