header not integrating

Discussion in 'Templates customization' started by story, Nov 6, 2007.

  1. story

    story New Member

    Joined:
    Aug 29, 2006
    Messages:
    21
    This is probably something so simple that I am missing it: (I've searched and searched here but cannot find anything similar - many thanks in advance for help.)

    The header.html doc is working fine in the amember general php pages.

    I have several products - each with their own index.php. (and config file which basically just calls up the database for those products)

    I have an include line for the header and footer but for some reason, the header is not showing.

    Here is beginning code:

    <?
    $_product_id = array(11);
    include("/home/me/public_html/subscribe/plugins/protect/php_include/check.inc.php");
    ?>
    <? include("/home/me/public_html/subscribe/templates/header.html"); ?>
    <? include_once "config.php"; ?>


    I read somewhere about spaces before and after the ?> causing troubles and I checked those - there are no extra spaces.

    Oddly, the footer is integrating fine:

    <? include("/home/me/public_html/subscribe/templates/footer.html"); ?>



    I am not a programmer and I fear I bug Alex way too much :eek: (even though he is very patient and solves problems in rapid time). and there are so many knowledgeable and willing people who help here. (thanks - I've learned a lot in this forum!)

    thanks for any light to be shed!
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Possible there is an error when php tryed to include that file. Do you see any errors on the page?
    If no, Try to add this line to the top of your script:
    <?ini_set("display_errors", "On");?>
  3. story

    story New Member

    Joined:
    Aug 29, 2006
    Messages:
    21
    I added the line to show errors.

    With the php_include file, I receive this error:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/me/public_html/subscribe/tos/index.php:2) in /home/me/public_html/subscribe/plugins/protect/php_include/check.inc.php on line 32

    I could not find anything that seemed to load the header in line 32 of check.inc.php.

    I removed the include line and received no errors, but header still did not load

    (puzzled by "index.php:2" - where would this come from? (only 1 index.php in dir)

    Thanks, Alex!
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Please contact me in helpdesk and provide access info I will check this

Share This Page