Skip to:

[Moved]Fatal error occured while trying to delete a user

  • ‘Fatal error: Call to undefined function bp_activity_delete() in /home/(name)/public_html/wordpress/wp-content/plugins/bp-album/includes/bp-album-core.php on line 511’

    I got this while trying to delete a user’s account. I’m not enirely sure what it means…any help would be greatly appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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;

    $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){



    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Moved]Fatal error occured while trying to delete a user’ is closed to new replies.
Skip to toolbar