I’m sorry to bump, but any ideas as to what might have caused this?
could be some leftover DB value that didn’t get deleted that’s throwing things off.
Just to be sure it’s not a bad file, unzip the same v WP installation and overwrite that file with a fresh one.
Although the error lends to a botched plugin (there are no shortage of them, open source….)
you could axe the entire plugin folder and try again.
Just back everything up often.
So the best fix is to delete the plugin and try installing it again?
Just out of curiosity, what is DB value?
in the sql db, there’s associations created in tables related to the user account.
However, being as it’s giving you a specific php error, I’d lean towards the plugin going haywire.
It could be a memory thing too. post the error log and you may get some more precise advice.
I’m a fan of the brute force method of doing things, make it or break it….
not neccesarily the best, works for me though.
This same thing is happening to me! Here is the code in question.
`function bp_album_delete_by_user_id($user_id,$remove_files = true){
global $bp;
if($remove_files){
$pics = BP_Album_Picture::query_pictures(array(
‘owner_type’ => ‘user’,
‘owner_id’ => $user_id,
‘per_page’ => false,
‘id’ => false
));
if($pics) foreach ($pics as $pic){
@unlink($pic->pic_org_path);
@unlink($pic->pic_mid_path);
@unlink($pic->pic_thumb_path);
}
}
bp_activity_delete(array(‘component’ => $bp->album->id,’user_id’ => $user_id));
return BP_Album_Picture::delete_by_user_id($user_id);
}`
All this should be posted over at plugin’s forums which devs check out regularly
https://buddypress.org/community/groups/bp-album/forum/