[buddypress-trac] [BuddyPress Trac] #5874: BP_Groups_Group::get() returns incorrect results when using meta_query with multiple meta_values and OR relationship

buddypress-trac noreply at wordpress.org
Mon Sep 15 11:39:26 UTC 2014


#5874: BP_Groups_Group::get() returns incorrect results when using meta_query with
multiple meta_values and OR relationship
--------------------------+------------------------------
 Reporter:  richtelford   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Groups        |     Version:
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by boonebgorges):

 I've performed exactly the steps that you've laid out above (as much as I
 could - more below) and it's still working properly for me. Only the
 correct 2 groups are being returned.

 When you say "manually added unique meta data" I'm assuming that means
 that you went to the mysql command line and did something like this:

 {{{
 INSERT INTO wp_bp_groups_groupmeta (group_id,meta_key,meta_value) VALUES
 (5,'sport','swimming');
 }}}

 If so, this makes me think that you might have a caching issue on your
 hands. Check to see if you have some sort of aggressive PHP or MySQL-level
 caching going on in your current environment. You might double check this
 by testing for the problematic behavior on a different server/computer.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5874#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list