I know how to make it work
-
[Please do not post in uppercase & shout at us. Post title de-capped.]
i installed “BuddyPress Photos+tags”..
so then i open the “Members” page and click/open my profile..
and then i see the “Album” tab belowbut then when i click it i get this error
Warning: Missing argument 2 for wpdb::prepare(), called in C:\wamp\www\wordpress\wp-content\plugins\bp-phototag\includes\bpa.classes.php on line 322 and defined in C:\wamp\www\wordpress\wp-includes\wp-db.php on line 992
and also
Warning: Missing argument 2 for wpdb::prepare(), called in C:\wamp\www\wordpress\wp-content\plugins\bp-phototag\includes\bpa.classes.php on line 310 and defined in C:\wamp\www\wordpress\wp-includes\wp-db.php on line 992
so i edited bpa.classes.php
which is located here
\wordpress\wp-content\plugins\bp-phototag\includes\bpa.classes.php
on line 310, i replaced this
$sql = $wpdb->prepare( "SELECT * FROM {$bp->album->table_name} WHERE $where $order $limits") ;
with this
$sql = $wpdb->prepare( "SELECT * FROM {$bp->album->table_name} WHERE %s %s %s", $where , $order , $limits) ;
and on line 322, i replaced this
$sql = $wpdb->prepare( "SELECT DISTINCT $select COUNT(id) AS count FROM {$bp->album->table_name} WHERE $where $group") ;
with this
$sql = $wpdb->prepare( "SELECT DISTINCT $select COUNT(id) AS count FROM {$bp->album->table_name} WHERE %s %s", $where , $group) ;
AND THAT’S IT !!!
it seems to be working perfectly fine
- The topic ‘I know how to make it work’ is closed to new replies.