[resolved] Warning message (5 posts)

  1. tomjamieson
    Posted 3 years 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


  2. oxfordian3
    Posted 3 years ago #

    It looks like a problem with the Amen plugin.

    I can view the plugin source code at:


    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
    Posted 3 years ago #

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

  4. oxfordian3
    Posted 3 years ago #

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

  5. UaMV
    Plugin Author

    Posted 3 years 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

  • Amen
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.