• Resolved namrabix

    (@namrabix)


    Today, dunno why, I just was welcomed with this kind of information, when I tried to log in to my WP (from what I know yesterday I installed Lite Cache + some how I think that it’s good to mention that I’m using Hide My WP also).

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-config.php:1) in /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-login.php on line 384

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-config.php:1) in /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-login.php on line 396

    wp-login.php:

    // validate action so as to default to the login screen
    if ( !in_array( $action, array( ‘postpass’, ‘logout’, ‘lostpassword’, ‘retrievepassword’, ‘resetpass’, ‘rp’, ‘register’, ‘login’ ), true ) && false === has_filter( ‘login_form_’ . $action ) )
    $action = ‘login’;

    nocache_headers();

    [384] header(‘Content-Type: ‘.get_bloginfo(‘html_type’).’; charset=’.get_bloginfo(‘charset’));

    if ( defined( ‘RELOCATE’ ) && RELOCATE ) { // Move flag is set
    if ( isset( $_SERVER[‘PATH_INFO’] ) && ($_SERVER[‘PATH_INFO’] != $_SERVER[‘PHP_SELF’]) )
    $_SERVER[‘PHP_SELF’] = str_replace( $_SERVER[‘PATH_INFO’], ”, $_SERVER[‘PHP_SELF’] );

    $url = dirname( set_url_scheme( ‘https://’ . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘PHP_SELF’] ) );
    if ( $url != get_option( ‘siteurl’ ) )
    update_option( ‘siteurl’, $url );
    }

    //Set a cookie now to see if they are supported by the browser.
    [396] setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN);
    if ( SITECOOKIEPATH != COOKIEPATH )
    setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN);

    and after I log in I have the same message about wp-login.php +:

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-config.php:1) in /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-includes/pluggable.php on line 678

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-config.php:1) in /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-includes/pluggable.php on line 679

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-config.php:1) in /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-includes/pluggable.php on line 680

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-config.php:1) in /homepages/31/d415355951/htdocs/bartoszandrzejewski.pl/wp-includes/pluggable.php on line 875

    so… pluggable.php:

    $auth_cookie = wp_generate_auth_cookie($user_id, $expiration, $scheme);
    $logged_in_cookie = wp_generate_auth_cookie($user_id, $expiration, ‘logged_in’);

    do_action(‘set_auth_cookie’, $auth_cookie, $expire, $expiration, $user_id, $scheme);
    do_action(‘set_logged_in_cookie’, $logged_in_cookie, $expire, $expiration, $user_id, ‘logged_in’);

    [678] setcookie($auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);
    [679] setcookie($auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);
    [680] setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true);
    if ( COOKIEPATH != SITECOOKIEPATH )
    setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, SITECOOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true);

    and then a little further:

    if ( !$is_IIS && php_sapi_name() != ‘cgi-fcgi’ )
    status_header($status); // This causes problems on IIS and some FastCGI setups

    [875] header(“Location: $location”, true, $status);
    }
    endif;

    Help me please ??

Viewing 1 replies (of 1 total)
  • Hi, were you able to solve this?

    I’m having the EXACT SAME PROBLEM.

    Any help will be appreciated ??

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot modify header information – headers already sent by’ is closed to new replies.