Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: have problem with SEND TO box


John James Jacoby
Keymaster

@johnjamesjacoby

Looks to me like the file bp-friends-classes.php asks for $filtered_fids in the SQL query inside the search_friends function, but it isn’t a global variable and isn’t declared in the function…

$total_friends = $wpdb->get_var( $wpdb->prepare( "SELECT count(id) FROM {$bp->friends->table_name} WHERE (friend_user_id IN ($filtered_fids) AND initiator_user_id = %d) OR (initiator_user_id IN ($filtered_fids) AND friend_user_id = %d)", $user_id, $user_id ) );

It is however used in the search_users function on apx line 221.

$filtered_fids = $wpdb->get_col($sql);

I might be missing something, but if this isn’t in the trac it might be a bug…

Do you know what version of PHP your website is hosted on? And what version of MySQL your database uses? Approximate versions are fine, 4.x, 5.x, etc… If you are unsure, the name of your host might be enough also. I’ve tried to duplicate the bug searching for quotes and weird characters on my test site but couldn’t break it myself…

Curious also what is the username of the friend you’re sending the message to? Does it happen with all user names you try to compose a message to?

Skip to toolbar