[wp-trac] [WordPress Trac] #36215: Friendlier "headers already sent" error message on wp-login.php

WordPress Trac noreply at wordpress.org
Sat Mar 12 09:53:10 UTC 2016


#36215: Friendlier "headers already sent" error message on wp-login.php
-------------------------+-------------------------------------------------
 Reporter:  johnbillion  |      Owner:
     Type:  feature      |     Status:  new
  request                |  Milestone:  Awaiting Review
 Priority:  normal       |    Version:
Component:  Login and    |   Keywords:  needs-patch ux-feedback good-first-
  Registration           |  bug
 Severity:  normal       |
  Focuses:               |
-------------------------+-------------------------------------------------
 When a user first installs WordPress and manually configures their `wp-
 config.php` file, a rogue leading or trailing space, tab, new line, or
 other character in this file can prevent the user from logging in due to
 the "headers already sent" error. See #36213 for a recent example.

 In order to make this error condition friendlier, `wp-login.php` should
 perform a `headers_sent()` check before sending cookies and display a
 friendlier error message if headers have already been sent. Rather than a
 verbose error message, a link to a relevant Codex or Handbook article
 could be provided.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36215>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list