Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Antonios,

    this issue is due to the query exceeded the max length because plugin get all users in the filtered groups then pass it to query so query will fail if there are a lot of users.

    so to fix this issue we recommend the following solution, replace code from line 86 to 106 in groups/lib/admin/class-groups-admin-users.php, function name “pre_user_query” with the following code

    $ids = implode(‘,’, wp_parse_id_list($group_ids));
    $goups_table = $wpdb->prefix . ‘groups_user_group’;
    $user_query->query_from .= ” join $goups_table on $wpdb->users.ID = $goups_table.user_id”;
    $user_query->query_where .= ” AND $goups_table.group_id IN ($ids)”;

    Plugin Author Kento

    (@proaktion)

    Hi there,

    Thanks for reporting this issue – I just checked on a test install with +300k users and get a WSOD so I can confirm that this needs to be fixed.

    I’ve taken note to review and issue an update.

    Cheers

    Thread Starter Antonios Hafez

    (@antonioshafez)

    Thanks for your help. Its works correctly now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No users found.’ is closed to new replies.