Hello… and help! I’m getting same error at https://www.seedmedia.co.za – which occurred after BuddyPress support created a custom.php for the plugin to help with alignment issue.
Now I’m getting white screen when I try log in.
Any pointers?
The buatp.template.custom.php reads:
<?php
/**
* BuddyPress - Members Directory
*
* @package BuddyPress
* @subpackage bp-default
*/
get_header( 'buddypress' ); ?>
<?php do_action( 'bp_before_directory_members_page' ); ?>
<div id="page-title">
<div id="page-title-inner">
<div class="title">
<h1>
<?php _e( sprintf('%1s Directory',ucfirst( buatp_get_dir_name())), 'buddypress' ); ?>
</h1>
</div>
</div>
</div>
<div id="content">
<div id="content-left">
<div class="maincontent" style="float: none">
<div class="padder">
<?php do_action( 'bp_before_directory_members' ); ?>
<form action="" method="post" id="members-directory-form" class="dir-form">
<?php do_action( 'bp_before_directory_members_content' ); ?>
<div id="members-dir-search" class="dir-search" role="search">
<?php bp_directory_members_search_form(); ?>
</div><!-- #members-dir-search -->
<div class="item-list-tabs" role="navigation">
<ul>
<li class="selected" id="members-all"><a>"><?php printf( __( 'All %1s <span>%2s</span>', 'buddypress' ),ucfirst( buatp_get_dir_name()), bp_get_total_member_count() ); ?></a>
<?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
<li id="members-personal"><a>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a>
<?php endif; ?>
<?php do_action( 'bp_members_directory_member_types' ); ?>
</ul>
</div><!-- .item-list-tabs -->
<div class="item-list-tabs" id="subnav" role="navigation">
<ul>
<?php do_action( 'bp_members_directory_member_sub_types' ); ?>
<li id="members-order-select" class="last filter">
<label for="members-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
<select id="members-order-by">
<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
<option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>
<?php if ( bp_is_active( 'xprofile' ) ) : ?>
<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
<?php endif; ?>
<?php do_action( 'bp_members_directory_order_options' ); ?>
</select>
</ul>
</div>
<div id="members-dir-list" class="members dir-list">
<?php locate_template( array( 'members/members-loop.php' ), true ); ?>
</div><!-- #members-dir-list -->
<?php do_action( 'bp_directory_members_content' ); ?>
<?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?>
<?php do_action( 'bp_after_directory_members_content' ); ?>
</form><!-- #members-directory-form -->
<?php do_action( 'bp_after_directory_members' ); ?>
</div><!-- .padder -->
</div>
</div>
<?php get_sidebar( 'buddypress' ); ?>
</div><!-- #content -->
<?php do_action( 'bp_after_directory_members_page' ); ?>
<?php get_footer( 'buddypress' ); ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your code has been permanently damaged/corrupted by the forum’s parser.]