Cannot modify header information – headers already sent by (output started at
-
Hello friends, l am having this error, anyone know the reason ? thanks..
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/blog/wp-content/plugins/widgets2/widgets.php:2290) in /home/xxxxxx/public_html/blog/wp-includes/pluggable.php on line 275
-
Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxxx/public_html/blog/wp-content/plugins/widgets2/widgets.php:2290) in /home/rcpkrc/public_html/blog/wp-comments-post.php on line 55
Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxxx/public_html/blog/wp-content/plugins/widgets2/widgets.php:2290) in /home/rcpkrc/public_html/blog/wp-comments-post.php on line 56
Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxxx/public_html/blog/wp-content/plugins/widgets2/widgets.php:2290) in /home/rcpkrc/public_html/blog/wp-comments-post.php on line 57
Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxxx/public_html/blog/wp-content/plugins/widgets2/widgets.php:2290) in /home/rcpkrc/public_html/blog/wp-includes/pluggable.php on line 275
My guess would be that you have a blank line at the end of your widgets.php file, after the final ?> bit. Remove it.
no it doesnt work! the same error!
output started at /home/…plugins/widgets2/widgets.php:2290
Well, I don’t know what it is that you’re doing, but the widgets.php file is not 2290 lines long. I’d say that you’ve seriously corrupted it somehow. Replace the file with an original copy from the widgets zip file.
I am having this same problem with a new install. I have tried everything listed here and nothing seems to work.
Warning: Cannot modify header information – headers already sent by (output started at /home/content/c/a/r/carlkiwi/html/wp-config.php:1) in /home/content/c/a/r/carlkiwi/html/wp-login.php on line 12
Warning: Cannot modify header information – headers already sent by (output started at /home/content/c/a/r/carlkiwi/html/wp-config.php:1) in /home/content/c/a/r/carlkiwi/html/wp-includes/pluggable.php on line 313
Warning: Cannot modify header information – headers already sent by (output started at /home/content/c/a/r/carlkiwi/html/wp-config.php:1) in /home/content/c/a/r/carlkiwi/html/wp-includes/pluggable.php on line 314
Warning: Cannot modify header information – headers already sent by (output started at /home/content/c/a/r/carlkiwi/html/wp-config.php:1) in /home/content/c/a/r/carlkiwi/html/wp-includes/pluggable.php on line 275
headers already sent by (output started at …wp-config.php:1
Your wp-config.php file has a blank line at the very beginning of it.
All the major wordpress files must start with <?php and must end with ?>. No blank lines around them are allowed!
I am also having a similar problem…
Warning: Cannot modify header information – headers already sent by (output started at /homepages/0/d195165291/htdocs/wp_blog/wp-config.php:1) in /homepages/0/d195165291/htdocs/wp_blog/wp-login.php on line 12
Warning: Cannot modify header information – headers already sent by (output started at /homepages/0/d195165291/htdocs/wp_blog/wp-config.php:1) in /homepages/0/d195165291/htdocs/wp_blog/wp-includes/pluggable.php on line 313
Warning: Cannot modify header information – headers already sent by (output started at /homepages/0/d195165291/htdocs/wp_blog/wp-config.php:1) in /homepages/0/d195165291/htdocs/wp_blog/wp-includes/pluggable.php on line 314
Warning: Cannot modify header information – headers already sent by (output started at /homepages/0/d195165291/htdocs/wp_blog/wp-config.php:1) in /homepages/0/d195165291/htdocs/wp_blog/wp-includes/pluggable.php on line 275
any ideas?
I’ve observed a similar problem trying to upload a file via the ‘write post’ page. I have checked my config.php file for extra lines and spaces next to <? and ?> as well as in the php files referred to . With no surrounding spaces or lines it still happens. Suggestions?
The error…
The uploaded file could not be moved to /home/ftpuser/toddspace/wordpress213/wp-content.
Warning: Cannot modify header information – headers already sent by (output started at /home/ftpuser/toddspace/wordpress213/wp-admin/admin-functions.php:1887) in /home/ftpuser/toddspace/wordpress213/wp-includes/functions.php on line 1221I did read the troubleshooting FAQ’s answer to this problem, but there’s no <? or ?> on the problem line 1887 (now 1886). There are spaces, but I don’t know anything about php and don’t want to break the code.
TheTodd: The error you are getting is because of this:
The uploaded file could not be moved to /home/ftpuser/toddspace/wordpress213/wp-content.The permissions on your wp-content directory or on your uploads directory won’t allow it to move files to there. Set the permissions on the uploads directory to 666. If there is no uploads directory, create one under wp-content.
I’m having the same problem. My uploads folder is even set to 777, so there shouldn’t be a problem. It occurred at the same moment, and in WP 2.1.2 there was no problem.
I got this working for me. My problem was that my wp-settings.php file had an extra space (carriage return actually) after the closing php tag.
Upon removal of the space after the ?> tag, everything worked perfectly. So, my advice is look at ANY php files you may have initially edited to configure your site for your needs, and check them for spaces before or after the php tags.
Hope that helps,
AlanI had same problem (with WP 2.1.3)
1. make folder uploads in /wp-content
2. CHMOD to 666
3. remove space after ?>tagBut when i tried to upoad my files to /uploads, it said:
1. still same error (errno=13 – Permission denied) … wp-includes/functions.php on line 9722. still same error ‘Warning: Cannot modify header information – headers already sent by (output started at /folders/wp-includes/functions.php:972)’
3. error in folders/wp-includes/functions.php on line 1221
Then i try to figure it out. Line 1221 in function.php is ‘header(‘Content-Type: text/html; charset=utf-8′);’
Unfortunately, there is no significant result till now. Then, I try downgrade it to WP 2.1.2 (like Jorasho said). The problem is gone.Well, i hope there is another solution than downgrade for this problem ??
I had this issue, but it has been resolved.
First, I disabled all plugins and activated them one by one. After activating each one, I refreshed the pages that gave me the error(s). It wasn’t long before I narrowed down on the problematic one and disabled it. The incompatible plugin happened to be Hello Dolly.
I’m getting the same thing with a (slightly hacked up) version of a widget called “dropdown archives”: it’s complaining about pluggable.php, line 331. This is with WP 2.2.1.
What’s curious is that the widget, best as I can tell, is not writing anything to headers. But disabling it does seem to resolve the problem.
- The topic ‘Cannot modify header information – headers already sent by (output started at’ is closed to new replies.