Support » Fixing WordPress » White Screen Returns on Save Draft, Preview, Commenting

  • Resolved jd99

    (@jd99)


    I erased and reloaded 3.5.1 after getting white screen errors and a “header” error. Reloading and deleting old plug ins seemed to make the errors go away. I continuously checked previewing posts and making comments on the blog and those functions worked. All seemed to be well.

    Then I wrote a new post. As soon as I hit “save draft,” the white screen returned. Now I get it every time I save, preview, try to add a comment, or even logout (all of which I could do before successfully).

    This is the sole error I get when I save a draft or make a comment:

    Warning: Cannot modify header information – headers already sent by (output started at /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-settings.php:3) in /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-includes/pluggable.php on line 876

    However, when I try to logout, I get

    Warning: Cannot modify header information – headers already sent by (output started at /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-includes/functions.php:3) in /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-login.php on line 368

    Warning: Cannot modify header information – headers already sent by (output started at /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-includes/functions.php:3) in /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-login.php on line 380

    and 14 more just like it.
    Warning: Cannot modify header information – headers already sent by (output started at /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-includes/functions.php:3) in /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-includes/pluggable.php on line 697

    I’ve referenced those lines (cookies and author information) and can’t figure out why I suddenly have an error.

    Any help?

Viewing 15 replies - 1 through 15 (of 21 total)
  • Would probably be better to continue in your earlier thread on this issue so people know what has already been tried…
    http://wordpress.org/support/topic/warning-headers-already-sent-reference-line?replies=6

    You can change that one back to “unresolved” BTW.

    Now that I said that, I looked at your site and if you use View Source – it looks like there are some empty lines above the DOCTYPE – so those would be in the header.php file – did you modify that file, by chance?

    You could try opening that file and removing all spaces before the first php tag – see this:

    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

    I didn’t modify header.php, though I did use the WP Admin panel appearance option to upload a graphic.

    I don’t see any empty lines in the source file. I’ve read that FAQ before and don’t have lines at the end or beginning. I’ve used both FrontPage and ExpressionWeb to ftp the files.

    The “empty” lines in View Source are PHP comments in the original file that precede the DOCTYPE html.

    Those empty lines in View Source aren’t normally there – just looked at a test install. Not sure that’s the problem – but maybe worth a try.

    I’m not sure how to delete them since they’re not in the actual file. The PHP bumps right against the DOCTYPE, and I didn’t touch that file.

    I just tried to delete blank lines at the end of all the wp files and generated a 500 error for my trouble. Reloaded the files.

    You could try downloading a new copy of twentytwelve to your local computer and replacing the header.php file via FTP.

    I just deleted the theme, reinstalled it. Same problem.

    I deleted and re-uploaded the php files within wp-admin — no change.

    I deleted and re-uploaded the php files within wp-includes — everything now works…for the time being, as far as I can tell. I still don’t know what caused the white screen issue.

    I went through the same test steps: commented, edited, previewed, new draft, everything worked.

    I just don’t know why.

    Hmm, weird indeed. But glad it’s working now anyway. If it reappears, if anyone can help you sort it, esmi and catacaustic in the other thread know a hell of a lot (more than I do) so I’d put my money on them :).

    It would be good to update that other thread for the time being as well – just so they don’t dive into it.

    Six hours after having a working blog, I reattempted one thing: saving a test draft blog. Got a white screen. Tried commenting, previewing, same thing.

    Deleted, reuploaded wp-admin and wp-includes files (not folders), still didn’t work.

    Deleted, reuploaded root wp files (not folders), started working. Turned on the config debug option, and got no errors.

    What can possibly be breaking?

    It wasn’t my intention to have two open threads on this; I’ll point the other one here.

    The site continues to break (white screen as above) for a reason I can’t explain. It isn’t immediate, because I walk away from a working site and come back to a broken one. I’m not sure if its time or some action being taken. This last time, when I couldn’t leave a comment without getting a white screen, uploading the root files didn’t help, but the includes files did. I can’t conceive a rhyme or reason for why different files fix it different times.

    In a predictable fashion, my blog will work perfectly fine, and then a few hours later I will return to it and as soon as I try to do anything like preview a post, approve a comment, etc, I get a white screen. The error is

    Warning: Cannot modify header information – headers already sent by (output started at /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-settings.php:3) in /services2/webpages/c/h/christianfighterpilot.com/public/blog/wp-includes/pluggable.php on line 876

    I can repair the site by re-uploading all the files (not folders) from the includes and root wp folder. I’ve tried uploading them in different orders, but until I get all of the files uploaded, I continue to get the error. The site will continue to work perfectly until I come back to it a few hours later.

    The only plug in I have operating is akismet. I have a twentytwelve-child running with no changes to those files and very few modifications themselves.

    Any help would be appreciated, as re-uploading the blog every few hours is unsustainable.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘White Screen Returns on Save Draft, Preview, Commenting’ is closed to new replies.