• Hello all,
    I have a wordpress site with a certain membership login plugin.

    When i have an expired user that logs in i get this message: (this same error repeats itself for about fifteen or so lines for pluggable-line 669, 670, 671…etc
    *
    Warning: Cannot modify header information – headers already sent by (output started at /home/xxx/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php:243) in /home/xxx/public_html/wp-includes/pluggable.php on line 669*

    So i deactivate the All in One Seo Plugin and get the following: (same thing with the repeating pluggable lines)

    Warning: Cannot modify header information – headers already sent by (output started at /home/jeep123/public_html/wp-content/themes/mad/header.php:2) in /home/jeep123/public_html/wp-includes/pluggable.php on line 671

    This is what the top of my header file looks like:

    ` <?php
    /**
    * The Header for our theme.
    *
    * @package WordPress
    * @subpackage blah
    * @since blah
    */
    ?>
    <!doctype html>
    <!--[if IE 6]><html class="ie6 oldie" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 7]><html class="ie7 oldie" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]><html class="ie8 oldie" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if gte IE 9]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
    <head>`

    And this is what the pluggable lines look like:

    setcookie($auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);
    setcookie($auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);
    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);
    }
    endif;
    if ( !function_exists('wp_clear_auth_cookie') ) :
    /**
    * Removes all of the cookies associated with authentication.
    *
    * @since 2.5
    */
    function wp_clear_auth_cookie() {
    do_action('clear_auth_cookie');
    setcookie(AUTH_COOKIE, ' ', time() - 31536000, ADMIN_COOKIE_PATH, COOKIE_DOMAIN);
    setcookie(SECURE_AUTH_COOKIE, ' ', time() - 31536000, ADMIN_COOKIE_PATH, COOKIE_DOMAIN);
    setcookie(AUTH_COOKIE, ' ', time() - 31536000, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN);
    setcookie(SECURE_AUTH_COOKIE, ' ', time() - 31536000, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN);
    setcookie(LOGGED_IN_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN);
    setcookie(LOGGED_IN_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN);
    // Old cookies
    setcookie(AUTH_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN);
    setcookie(AUTH_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN);
    setcookie(SECURE_AUTH_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN);
    setcookie(SECURE_AUTH_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN);
    // Even older cookies
    setcookie(USER_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN);
    setcookie(PASS_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN);
    setcookie(USER_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN);
    setcookie(PASS_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN);
    }
    endif;

    The plugin developer said this “the eader.php file is basically printing out headers before it should. Some programming issue there. And since WordPress is trying to set cookies through pluggable.php, it was showing all of those errors – every single one of them because of the same issue with your theme header.”

    And recommended to change all of the ‘setcookie’ to ‘@setcookie’

    But I’m not a hard core programmer and i believe this is just hiding the error right? Anyone have a better solution or would this be ok?

    https://www.ads-software.com/extend/plugins/all-in-one-seo-pack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am also having this problem and cannot get around it. I’m not experienced but I cant do anything further to get my site off the ground, Word Press is totally locked up with this.

    Make sure you’ve gotten rid of everything before the opening <?php tag in your header.php file; this is a common issue where, as the developer said, something is printing content out to the webpage before it should, before all the HTTP headers (which includes cookie information) for the webpage have been sent. This could be due to a plugin or due to your theme; I would recommend systematically deactivating plugins and changing your theme to a default theme for troubleshooting purposes, to determine what is causing the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: All in One SEO Pack] Cannot Modify Header error–All in One SEO Plugin’ is closed to new replies.