[wp-trac] [WordPress Trac] #27974: Unable to Log In, Cookies Are Blocked Due To Unexpected Output
WordPress Trac
noreply at wordpress.org
Thu May 1 05:57:23 UTC 2014
#27974: Unable to Log In, Cookies Are Blocked Due To Unexpected Output
------------------------------------+------------------------------
Reporter: dejong1968 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: 3.9
Severity: major | Resolution:
Keywords: close | Focuses:
------------------------------------+------------------------------
Comment (by JorgeW):
Replying to [comment:13 michaelconroy]:
Well, in fact I did something previous to that, because I had a complete
blank login page prior to the blocked cookies issue.
I had a *clean* downloaded backup copy of my whole WP folder (e.g. WP1)
which I uploaded to a new folder I just created for that (e.g. WP2). When
I browsed to the backed up login file on this new folder (WP2), the login
sent me to the first folder (WP1, as so it is defined in the wp-config.php
to look at the -non modified- MySQL data-base ) and the error message was
gone, although I had to reset my password, as mentioned in my first post.
So hopefully you have a backup copy to try to play with.
BTW if you look at the wp-login.php file, there it states the following
regarding the blocked cookies error message.
{{{
// If the user was redirected to a secure login form from a non-
secure admin page, and secure login is required but secure admin is not,
then don't use a secure
// cookie and redirect back to the referring non-secure admin
page. This allows logins to always be POSTed over SSL while allowing the
user to choose visiting
// the admin via http or https.
$user = wp_signon( '', $secure_cookie );
if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
if ( headers_sent() ) {
$user = new WP_Error( 'test_cookie', sprintf( __(
'<strong>ERROR</strong>: Cookies are blocked due to unexpected output. For
help, please see <a href="%1$s">this documentation</a> or try the <a
href="%2$s">support forums</a>.' ),
__( 'http://codex.wordpress.org/Cookies'
), __( 'https://wordpress.org/support/' ) ) );
} elseif ( isset( $_POST['testcookie'] ) && empty(
$_COOKIE[ TEST_COOKIE ] ) ) {
// If cookies are disabled we can't log in even
with a valid user+pass
$user = new WP_Error( 'test_cookie', sprintf( __(
'<strong>ERROR</strong>: Cookies are blocked or not supported by your
browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
__( 'http://codex.wordpress.org/Cookies' )
) );
}
}}}
Does it say something to you?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27974#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list