Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal Error when trying to Delete User

  • @pisanojm

    Participant

    I am getting this error when trying to delete a user… Using latest 1.2x Branch Build 3067 (not 1.2.4.1) and WordPress 3.0.

    Fatal error: Using $this when not in object context in /home/musicpln/public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-classes.php on line 1053

    This happens when pressing the “confirm deletion” button. I have tried this with every plugin disabled except Buddpress and I still get the error. If I turn off the Buddypress plugin, I CAN delete the user as normal….

Viewing 17 replies - 1 through 17 (of 17 total)
  • @dnmedia

    Participant

    Open the file mentioned, and replace this:

    $group_ids = $this->get_group_ids( $user_id );

    with this:

    $group_ids = BP_Groups_Member::get_group_ids( $user_id );

    And right below that, replace this:

    foreach ( $group_ids->groups as $group_id ) {

    with this:

    foreach ( $group_ids as $group_id ) {

    That fixed the issue for me.

    @pisanojm

    Participant

    $group_ids = $this->get_group_ids( $user_id ); is on LINE 2105
    foreach ( $group_ids->groups as $group_id ) { is on LINE 2107

    I can CONFIRM this fix has worked for me. @r-a-y

    @pisanojm

    Participant

    Thanks @dnmedia

    @johnjamesjacoby

    Keymaster

    Can we get a ticket for 1.2.6 about this if there isn’t one?

    @r-a-y

    Keymaster

    @johnjamesjacoby

    Keymaster

    You all rock :)

    @josh101

    Participant

    I also used this 5 hours ago then deleted 49 spam users so you can bet your *** it works!

    @rossagrant

    Participant

    Thanks so much for this, works a treat!

    @newrambler

    Member

    Yes, that works! Yay and thank you so much!

    @johnjamesjacoby

    Keymaster

    Fixed in branch. Thanks!

    @christofire

    Participant

    Thanks! I was seeing the error when marking users as spam. Works properly now.

    @archondigital

    Participant

    same here, error got fixed, thanks!!!

    @chrislorenz

    Member

    Same here, problem fixed. Appreciate the work. :)

    @tyr

    Participant

    Worked for me as well! Thanks for the fix!

    @stef78

    Participant

    me too! Thanks amigo!

    @adi_nugraha32

    Member

    I had the same problem too and this fixes it. Thanks a lot!

    @rodgerbailey

    Participant

    Yes, this solved the problem.

    Thanks everyone!

Viewing 17 replies - 1 through 17 (of 17 total)
  • The topic ‘Fatal Error when trying to Delete User’ is closed to new replies.
Skip to toolbar