Warning: Cannot modify header information
-
Hi
I know this issue has been already adressed before, i’ve read the threads about it, but i cannot find any missing piece of code or spaces or anything related to the php document i’m getting the error from.
When i search for a keyword for a group on http://futeblogs.com/groups that already exists, i get this message:
Warning: Cannot modify header information - headers already sent by (output started at /home/futeblog/public_html/wp-content/bp-themes/bpmember/directories/groups/groups-loop.php:4) in /home/futeblog/public_html/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-signup.php on line 5
Wich means something is wrong in groups-loop.php line number 4
When i search for a group that is not there , there , i get this
Warning: Cannot modify header information - headers already sent by (output started at /home/futeblog/public_html/wp-content/bp-themes/bpmember/directories/groups/groups-loop.php:47) in /home/futeblog/public_html/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-signup.php on line 5
So, line 47 on same page.
However, i’m looking and looking and can’t find anything.
Here’s the code:
<?php if ( bp_has_site_groups( 'type=active&per_page=10' ) ) : ?>
<div class="pag-count" id="group-dir-count">
<?php bp_site_groups_pagination_count() ?>
</div>
<div class="pagination-links" id="group-dir-pag">
<?php bp_site_groups_pagination_links() ?>
</div>
<ul id="groups-list" class="item-list">
<?php while ( bp_site_groups() ) : bp_the_site_group(); ?>
<li>
<div class="item-avatar">
<a href="<?php bp_the_site_group_link() ?>"><?php bp_the_site_group_avatar_thumb() ?></a>
</div>
<div class="item">
<div class="item-title"><a href="<?php bp_the_site_group_link() ?>"><?php bp_the_site_group_name() ?></a></div>
<div class="item-meta"><span class="activity"><?php bp_the_site_group_last_active() ?></span></div>
<div class="item-meta desc"><?php bp_the_site_group_description() ?></div>
<?php do_action( 'bp_core_directory_groups_content' ) ?>
</div>
<div class="action">
<?php bp_the_site_group_join_button() ?>
<div class="meta">
<?php bp_the_site_group_type() ?> / <?php bp_the_site_group_member_count() ?>
</div>
<?php do_action( 'bp_core_directory_groups_actions' ) ?>
</div>
<div class="clear"></div>
</li>
<?php endwhile; ?>
</ul>
<?php else: ?>
<div id="message" class="info">
<p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p>
</div>
<?php endif; ?>
<?php bp_the_site_group_hidden_fields() ?>Any help is much appreciated.
- The topic ‘Warning: Cannot modify header information’ is closed to new replies.