Support » Plugin: Amen » Warning message

  • Resolved tomjamieson

    (@tomjamieson)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

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

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

    Plugin Author uamv

    (@uamv)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning message’ is closed to new replies.