Database error on bp_the_member() call in member loop
-
I have this:
while ( bp_members() ) :
bp_the_member();The bp_the_members is returning null and cause the database error for each member:
[php7:notice] [pid 2304654] [client 127.0.0.1:51798] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘) AND is_confirmed = 1 AND (is_admin = 0 AND is_mod = 0 AND is_banned = 0) ORDER’ at line 1 for query SELECT user_id FROM wp_bp_groups_members WHERE group_id IN () AND is_confirmed = 1 AND (is_admin = 0 AND is_mod = 0 AND is_banned = 0) ORDER BY date_modified DESC made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/PSUOutreachMarketing-Challenge/members-search.php’), get_footer, locate_template, load_template, require_once(‘/themes/PSUOutreachMarketing/footer.php’), dynamic_sidebar, WP_Widget->display_callback, WP_Widget_Text->widget, apply_filters(‘widget_text_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, GFForms::parse_shortcode, GFForms::get_form, GFFormDisplay::get_form, GFFormsModel::get_field_value, GF_Field_Checkbox->get_value_submission, GFFormsModel::get_parameter_value, gf_apply_filters, apply_filters(‘gform_field_value’), WP_Hook->apply_filters, populate_fields, get_all_team_members, bp_group_has_members, BP_Groups_Group_Members_Template->__construct, groups_get_group_members, BP_User_Query->__construct, BP_User_Query->prepare_user_ids_query, BP_Group_Member_Query->get_include_ids, BP_Group_Member_Query->get_group_member_ids, referer:This line:
if ( bp_has_members( ( 0 < count( $my_ids ) )?’include=’.implode(‘,’, $my_ids ):bp_ajax_querystring( ‘members’ ) ) ) :
is returning a comma separated string list of IDs I want to display.Any ideas what is going wrong?
- You must be logged in to reply to this topic.