WordPress.org

Ready to get started?Download WordPress

Forums

Amen
[resolved] Warning message (5 posts)

  1. tomjamieson
    Member
    Posted 1 year ago #

    Hello, I am getting an unusual error message at the top of my website:

    "Warning: Cannot modify header information - headers already sent by (output started at /home/pastorhe/public_html/wp-content/themes/greenchilli/header.php:2) in /home/pastorhe/public_html/wp-content/plugins/amen/amen-submit-prayer.php on line 38"

    Please advise. Thanks.

    My site is http://pastorhelper.org

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

  2. oxfordian3
    Member
    Posted 1 year ago #

    It looks like a problem with the Amen plugin.

    I can view the plugin source code at:

    http://plugins.trac.wordpress.org/browser/amen/trunk/amen-submit-prayer.php?rev=639781

    and in line 38, the code is

    setcookie("wp_amen_session", $amen_session, time() + 631138519, '/');

    The plugin is trying to set a cookie after HTML output has commenced (headers already sent), which is not allowed.

    The fix would have to be made by the plugin author. It seems to me that the change should be on line 17 of the same file:

    add_action( 'wp_head', 'amen_cookies' );

    If it was changed to

    add_action( 'init', 'amen_cookies' );

    then I think it would probably fix it.

  3. tomjamieson
    Member
    Posted 1 year ago #

    Thanks so much! That did the trick. I really appreciate your help!

  4. oxfordian3
    Member
    Posted 1 year ago #

    Glad to help! (You can mark the thread as resolved.)

  5. UaMV
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks. i also just found this. Should be fixed in release 0.1.0. Also, realize i should subscribe to my own support feed! Hope the plugin is working for you. i'm learning ... feedback always welcome.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.