OK since the author hasn’t responded, here’s how to fix this issue.
There are actually 2 issues after the latest WP and BP version releases.
ISSUE 1) function mass_messaging_page_screen() is not accessible from within the class that it’s declared in.
FIX: CUT (not copy) the following from where it is right now and PASTE it right after the line that says register_activation_hook(__FILE__, 'install_massmessaging');
at the very top of the code page.
(do not leave it where you found it! Copy, delete and paste at the new location!)
function mass_messaging_page_screen(){
add_action( 'bp_template_title', 'mass_messaging_page_screen_title' );
add_action( 'bp_template_content', 'mass_messaging_page_screen_content' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}
ISSUE 2) wpdb::prepare()
now requires at least 2 arguments so you will get a bunch of “Warning: Missing argument 2 for wpdb::prepare()
, called in….” errors once you do fix 1 above.
FIX: The quick fix is to add “, null” inside the prepare() after the query.
So for example:
prepare("SOME QUERY HERE")
should be modified to be: prepare("SOME QUERY HERE",null)
You get the idea. Add a second null parameter and that’s it!
Here’s a real example from the code:
CHANGE: $blogsAll = $wpdb->get_results( $wpdb->prepare("SELECT * FROM {$wpdb->blogs} AND spam = '0' AND deleted = '0' AND archived = '0' AND public='1'") );
TO: $blogsAll = $wpdb->get_results( $wpdb->prepare("SELECT * FROM {$wpdb->blogs} AND spam = '0' AND deleted = '0' AND archived = '0' AND public='1'",null ) );
That’s it. The mass messaging will work after that since I’ve tested it out my self. ??
Enjoy!