Error Warning: Cannot modify header information - headers already sent by (output started at /home/palamger/public_html/members/index.php:6)

  • Latest 3.1 whatever version my file name is just weird Error is

    Warning: Cannot modify header information - headers already sent by (output started at /home/palamger/public_html/members/index.php:6) in /home/palamger/public_html/pggs2.8.6_update/core/lib/PerchUtil.class.php on line 259

    I have tried and tried to fix this but it doesn't work. Actually did not change anything in the headerss was trying to fix the logout problem by changing code mid page around line 44

    In the past there was code in the front of the <?php or space that wasn't suppose to be there but tried that fix it did not work Need help here this is the login page for members section so its all down.


    ~~~

    <?php include('../pggs2.8.6_update/runtime.php'); ?>

    <!doctype html>

    <html class="no-js" lang="en">

    <head>

    <meta charset="utf-8" />

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title><?php perch_content('metatitle'); ?></title>

    <meta name="keywords" content="<?php perch_content('metakeywords') ?>" />

    <meta name="description" content="<?php perch_content('metadescription'); ?>" />

    <script src="assets522/js/vendor/modernizr.js"></script>

    </head>

    <body style="background-image: url('<perch_content(bkimage); ?>');background-repeat: repeat-x;background-color:#f8f8f8;">

    <!-- BEGIN --><div class="row wrapper mtop10" style="background-color:#fff;"><!-- full bleed wrapper - { margin: 0; padding: 0 } - this is where you would add background-color or background-image-->

    <div class="column panel none radius" style="background-color:#fff;"><!-- column wrapper - { padding: 15px } --><!-- remove "panel white radius" to remove wrapper border -->

    <div class="row header" style="background-color:#fff;text-align:center;">

    <div class="column" style="background-color:#fff;">

    <div class="row">

    <div class="large-3 medium-3 small-6 columns">

    <a href="<?php perch_content('mainurl'); ?>"><span style="border:none;"><?php perch_content('logopalam'); ?></span></a></div>

    <div class="large-9 medium-9 small-12 columns"><div class="panel centered" style="border:none;background-color:#fff;"><h1 class="cname" ><?php perch_content('nameline1'); ?> <span style="color:red;"><?php perch_content('nameline1pt2'); ?></span><br /><?php perch_content('nameline2'); ?></h1>

    <hr style="height:4px;width:55%;background-color:#ffd459;color:#ffd459;text-align:center; margin: 0 auto;"><h3 class="line1 centered" style="font-size:16px;color:black;line-height:20px;"><?php perch_content('countries'); ?></h3> <br />

    <br /><span style="margin-left:auto;margin-right:auto;padding:10px;color:#fff;font-size:20px;font-weight:bold;text-align:center;background-color:#233376;width:75%;">Restricted Access Individual Members Only</span>

    <!-- top ends here add rest of page --><!-- top ends here add rest of page -->


    </div></div></div> </div>

    </div> <!-- End Header -->


    <div class="small-12 medium-12 large-12 columns" style="background:#fff;">

    <div class="row">

    <div class="column">

    <div class="row">

    <div class="large-5 medium-5 small-12 columns"> <div style="background-color:#232376; color:#fff; text-align:center; padding:15px; font-weight:bold;"></div> <div class="panel">

    <?php

    if (perch_member_logged_in() && !perch_member_has_tag('notrenewed')){

    echo '<h3>Willkommen!</h3>';

    echo '<p>You are logged-in.</p>';

    echo '<ul>

    <li><a href="memberswebsite/">Members Website</a></li>

    <li><a href="profile.php">Edit profile</a></li>

    <li><a href="logout.php">Log Out</a></li>

    </ul>';

    }elseif (perch_member_has_tag('notrenewed')) {


    echo '<p>Our records indicate you have not renewed. You must renew to gain access to the records. <a href="https://www.palamgermangenealogysociety.org/bkstore/index.php?main_page=index&cPath=16">RENEW NOW</a> For problems contact, <a href="mailto:webcoordinator@palamgermangenealogysociety.org?Subject=Login-Palam">webcoordinator</a></p>';



    }elseif (perch_member_log_out('members')) {


    echo '<h3>Willkommen!</h3>';

    echo '<p>You are not logged in. Please login or <a href="/members/register.php">register</a> or <a href="https://www.palamgermangenealogysociety.org/bkstore/index.php?main_page=index&cPath=16">RENEW NOW</a>.</p>';

    echo 'Logged out, return to <a href="https://palam.org">Palatines to America HOMEPAGE Click Here</a>';

    perch_members_login_form();



    }


    ?>


    </div></div>

    <div class="large-7 medium-7 small-12 columns">

    <div style="text-align: justify;text-justify: inter-word;"> <?php perch_content('about general'); ?></div>


    </div></div> </div> </div></div>

    <!-- / row --> <!-- ADDITIONAL_CONTENT_INSIDE OFFCANVAS - can be removed or left empty --></div><!-- /row --><!-- main offcanvas content ends here --><!-- close the off-canvas menu --><a class="exit-off-canvas"></a><!-- <=== DO_NOT_REMOVE, THIS IS CLOSE OFFCANVAS OVERLAY --></div><!-- </div></div></div> --><!-- here -->

    <!-- empty row --><!-- empty row for content below offcanvas row - can be deleted or left empty -->

    <div class="row footer"><!-- empty row -->

    <div class="column">

    <div style="margin-left:35px;" ><?php perch_content('copyright info'); ?><br /><br /> </div><div class="large-6 columns"><div class="row"><div class="large-4 columns"><?php perch_content('supportimage1'); ?></div><div class="large-4 columns"><?php perch_content('supportimage2'); ?></div><div class="large-4 columns"><?php perch_content('supportimage3'); ?></div></div></div><div class="large-6 columns"></div> </div></div></div></div>

    <!-- / row .wrapper --><!-- END -->

    <link rel="stylesheet" href="assets522/css/foundation.css" />

    <link rel="stylesheet" href="assets522/css/styles.css" />

    <script src="assets522/js/vendor/jquery.js"></script><!-- Global jquery -->

    <script src="assets522/js/foundation.min.js"></script><script>$(document).foundation();</script></body></html>

    ~~~

  • Still no solution so I divided up the pages and made a special page for login which was NOT the index.php page No header issues with the unformatted page, but at least people can get in.