[wp-trac] [WordPress Trac] #27373: "Cookies are blocked" error is misleading

WordPress Trac noreply at wordpress.org
Wed Mar 12 11:04:23 UTC 2014


#27373: "Cookies are blocked" error is misleading
------------------------------------+------------------
 Reporter:  SergeyBiryukov          |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  3.9
Component:  Login and Registration  |     Version:  3.7
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch               |     Focuses:
------------------------------------+------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch


Comment:

 Instead of always checking the test cookie (which may or may not be set),
 I think we should check if we actually failed to set `LOGGED_IN_COOKIE`
 first, and add a distinct message for the "headers already sent" case.

 This would fix scenarios 1 and 5 and make troubleshooting much easier for
 the other three (we should ideally add some validation for `COOKIE_DOMAIN`
 in a new ticket).

 See [attachment:27373.patch].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27373#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list