Thank you for good job you have done on this plugin – Bp Gifts Rebirth, i was used it and it work perfectly for Buddypress 1.6.1, but it don’t work on the Buddypress 1.6.2, which is latest version of buddypress.
when i install and activate it on my social network Facebarbing.com this is what i get when i click on the Gifts icon from other member’s profile —
“Warning: Missing argument 2 for wpdb::prepare(), called in /home/facebjva/public_html/wp-content/plugins/bp-gifts-rebirth/includes/bp-gifts-classes.php on line 291 and defined in /home/facebjva”
please help us fix this problem out for us Bp users.
Thank you
Ogunkunle saheed shina
Researched online and found a solution (its a shame the developer didnt get back to us)
Check these links
http://mintthemes.com/wordpress-3-5-and-wpdb-prepare/
and
http://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-9?replies=15
For example you can change
$wpdb->prepare( "SELECT * FROM table WHERE id = $id" );
to
$wpdb->prepare( "SELECT * FROM table WHERE id = %d", $id );
This is the dodgy line ..
$allgift = $wpdb->get_results( $wpdb->prepare("SELECT * FROM {$bp->gifts->table_name} ") );
Anyone know how to fix it?