WordPress.org

Ready to get started?Download WordPress

Forums

MailPress
[resolved] Headers already sent error (7 posts)

  1. webgirl
    Member
    Posted 2 years ago #

    This error is showing after a person type in their information into the shortcode subscribe box when it is placed on a page.

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/all-in-one-seo-pack/aioseop.class.php:243) in /wp-content/plugins/mailpress/mp-includes/class/MP_Widget.class.php on line 263

    Mailpress 5.2.1
    WP 3.3.2

    http://wordpress.org/extend/plugins/mailpress/

  2. jimmyt1988
    Member
    Posted 2 years ago #

    This error is usually found when a re-direct or session cookie change is being done after ANY html has been output to the page.

    for example

    <p>Hi everyone</p>
    <?php
    header('Location: url');
    ?>

    Will create that same header problem.

    I hope that helps you find the problem.

  3. RENAUT
    Member
    Plugin Author

    Posted 2 years ago #

    output started at /wp-content/plugins/all-in-one-seo-pack/aioseop.class.php:243

  4. RENAUT
    Member
    Plugin Author

    Posted 2 years ago #

    apparently you are using the dev version

    MP_Widget.class.php on line 263

    is

    setcookie(...)

  5. webgirl
    Member
    Posted 2 years ago #

    Using the one that is available in the downloads section 5.2.1.

    It only gives this error when the person is not logged in and is trying to subscribe. If you're logged in there is no error or conflict with all in one seo.

    Must be the lines which start here.

    $user = wp_get_current_user();
    		if ( !$user->ID )
    		{
    			$comment_cookie_lifetime = apply_filters('comment_cookie_lifetime', 30000000);
    			setcookie('comment_author_'       . COOKIEHASH, $name,  time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
  6. webgirl
    Member
    Posted 2 years ago #

    Found out this error occurs when jquery, css and javascript is not on. You still may want to look into this because like me others may not use neither of these options on a particular page.

  7. RENAUT
    Member
    Plugin Author

    Posted 2 years ago #

    solved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags