[wp-trac] [WordPress Trac] #27974: Unable to Log In, Cookies Are Blocked Due To Unexpected Output
WordPress Trac
noreply at wordpress.org
Sun Mar 6 07:45:47 UTC 2016
#27974: Unable to Log In, Cookies Are Blocked Due To Unexpected Output
------------------------------------+----------------------
Reporter: dejong1968 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Login and Registration | Version: 3.9
Severity: critical | Resolution: invalid
Keywords: close | Focuses:
------------------------------------+----------------------
Changes (by katromanoff):
* severity: major => critical
Comment:
Seeing you're the master at solving this issues, maybe you could spare
some time to help me as well :)
I am unable to log in after using the Duplicator Plugin to migrate my
localhost to webhost.
Everything goes well until I try to sign back in to Wordpress, and the
cookie issue arrises.
Here's what I get:
Warning: Cannot modify header information - headers already sent by
(output started at
/data/20/4/135/98/4461098/user/5291026/htdocs/installer.php:1951) in
/data/20/4/135/98/4461098/user/5291026/htdocs/wp-login.php on line 387
Warning: Cannot modify header information - headers already sent by
(output started at
/data/20/4/135/98/4461098/user/5291026/htdocs/installer.php:1951) in
/data/20/4/135/98/4461098/user/5291026/htdocs/wp-login.php on line 400
Warning: Cannot modify header information - headers already sent by
(output started at
/data/20/4/135/98/4461098/user/5291026/htdocs/installer.php:1951) in
/data/20/4/135/98/4461098/user/5291026/htdocs/wp-includes/pluggable.php on
line 977
Warning: Cannot modify header information - headers already sent by
(output started at
/data/20/4/135/98/4461098/user/5291026/htdocs/installer.php:1951) in
/data/20/4/135/98/4461098/user/5291026/htdocs/wp-includes/pluggable.php on
line 978
Warning: Cannot modify header information - headers already sent by
(output started at
/data/20/4/135/98/4461098/user/5291026/htdocs/installer.php:1951) in
/data/20/4/135/98/4461098/user/5291026/htdocs/wp-includes/pluggable.php on
line 979
Warning: Cannot modify header information - headers already sent by
(output started at
/data/20/4/135/98/4461098/user/5291026/htdocs/installer.php:1951) in
/data/20/4/135/98/4461098/user/5291026/htdocs/wp-includes/pluggable.php on
line 980
and so on.
So I opened the installer.php:1951 and this is what I see:
color:#B94A48 !important;
background-color:#F2DEDE !important;
border:1px solid #EED3D7 !important;
}
ul.parsley-error-list {margin:1px 0 0 -40px; list-style-type:none;
font-size:10px}
</style>
<?php
// Exit if accessed directly
if (! defined('DUPLICATOR_INIT')) {
$_baseURL = strlen($_SERVER['SERVER_NAME']) ?
$_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST'];
$_baseURL = "http://" . $_baseURL;
header("HTTP/1.1 301 Moved Permanently");
header("Location: $_baseURL");
exit;
}
?>
<!-- ========================================
JQUERY ASSETS -->
Replying to [comment:24 SergeyBiryukov]:
> Replying to [comment:23 jesserhys]:
> > im still not sure what the error is with line 13, any help would be
much appreciated!
>
> There should be no `?> <?php` sequence in lines 11—13:
> {{{
> global $optimizer;
>
> function optimizer_pagination($navigation='numbered', $query='') { ?>
> }}}
>
> Looks like the issue is caused by the
[https://wordpress.org/themes/optimizer/ Optimizer] theme and should be
reported to the theme author.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27974#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list