Hello i found another bug.
Here are my php error logs:
——————————–
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 ‘where media_type IN (‘photo’,’video’,’music’) “
[13-Sep-2014 13:42:37] WARNING: [pool mydomain.net] child 20527 said into stderr: ” and’ at line 3 for Query SELECT activity_id, media_type “
[13-Sep-2014 13:42:37] WARNING: [pool mydomain.net] child 20527 said into stderr: ” from “
[13-Sep-2014 13:42:37] WARNING: [pool mydomain.net] child 20527 said into stderr: ” where media_type IN (‘photo’,’video’,’music’) “
[13-Sep-2014 13:42:37] WARNING: [pool mydomain.net] child 20527 said into stderr: ” and context = ‘profile'”
[13-Sep-2014 13:42:37] WARNING: [pool mydomain.net] child 20527 said into stderr: ” and media_author = 5 “
———————————-
You see, the table_name is not set in query.
I use the latest release of rtMedia with the latest release of BuddyPress Activity Privacy on WordPress 4.0.
I changed the lines 225, 330, 472 in your code
from
$table_name = $rtmedia_query->model->table_name;
to
$table_name = $wpdb->base_prefix."rt_rtm_media";
Now the error is going away and it works fine for me.
Please fix this for next updates, so my changes are not lost.
Thanks