My users media page isn’t displaying anything after updating. I’ve run the migration which all appears to have gone ok.
Example page for the error is http://www.trashdolls.com/members/Dolly-Trash/media/
Additionally I was using some custom code to display the users 5 most recent images on their main profile page which is now broken. Code is below:
function show_last_n_images($n=5){
if(bp_is_my_profile()){
$n = $n +1; }
$query = new BPMediaQuery();
$args = $query->init('image',false,$n);
$q = new WP_Query($args);
if ($q && $q->have_posts()){
echo '';
while ($q->have_posts()) : $q->the_post();
$mytemplate = new BPMediaTemplate();
$mytemplate->the_content(); endwhile;
echo '
';}
}
It errors out because it can’t find the BPMediaQuery() class which I assume has been changed in some way.
Any assistance to either issue would be greatly appreciated.