headers already sent

Discussion in 'Installation' started by Churchill, Jan 4, 2005.

  1. Churchill

    Churchill New Member

    Joined:
    Dec 5, 2004
    Messages:
    9
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/XXXXXX/public_html/XXXXXX/members/index.php:1) in /home/XXXXXX/public_html/XXXXXX/amember/plugins/protect/php_include/check.inc.php on line 30


    Please bare with me I am not a progammer but I am doing my best. I have a NEW website that is basic html / php. I am using php include in my header.php file that I was told to use to protect the webpages. Everything works as far as the protection goes but AFTER a user logs in I get the error at the top of each page I go to. This is the free version but I am going to upgrade once I get all the programming done and the bugs worked out. I have a working XOOPS site already but that was easy with the simple plug in.

    Thanks
    Churchill
  2. pilot

    pilot New Member

    Joined:
    May 24, 2003
    Messages:
    178
    Check you do not have any spaces before the <?php at the start of the script and you do not have any spaces after the ?>

    on the files mentioned in the error message index.php and check.inc.php

    if you have spaces there, delete them and re upload.

    AmemberPro User
  3. Churchill

    Churchill New Member

    Joined:
    Dec 5, 2004
    Messages:
    9
    FIXED thank you so much
  4. davehelmig

    davehelmig New Member

    Joined:
    Dec 4, 2006
    Messages:
    2
    I'm actually getting the same message. I had to reinstall my script, and now I get the same error as above on the login page itself. I am using:

    <?php
    $_product_id = array(1); // or $_product_id = array(1) if it so
    include("/home/frogstic/public_html/amember/plugins/protect/php_include/check.inc.php");
    ?>

    and results in:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/frogstic/public_html/article.php:17) in /home/frogstic/public_html/amember/plugins/protect/php_include/check.inc.php on line 32
    WARNING: Cannot modify header information - headers already sent by (output started at /home/frogstic/public_html/article.php:17) in line 1524 of file common.inc.php

    And then the login form shows below the errors.

    I have no stray spaces... I checked all the files it listed in the error. What can I do?
  5. pilot

    pilot New Member

    Joined:
    May 24, 2003
    Messages:
    178
    make sure all files are uploaded in binary, double check yout ftp client is not introducing spaces in upload.

    amember user
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It says output started at /home/frogstic/public_html/article.php:17
    What is in file article.php in line 17 and why it goes above the login code?
    Login code must be insterted to HEAD OF THE FILE.

Share This Page