Skip to:
Content
Pages
Categories
Search
Top
Bottom

Friends module not working after clicking on “Buddypress Repair Tools”

  • @castresana

    Participant

    Hello,

    I went to the “Buddypress Repair Tools” and clicked on:
    “Count friends for each user”
    I’ve got 150.000 users in my website. It looks like it didn’t complete the script, and it brought back an error 500 page.
    So, the wp-admin is throwing an error 500 if “Friends” module of Buddypress is active.
    I have deactivated it through the database, editing the wp_options section.
    But now my users cannot add friends.

    Is there any way to run the script outside the wp-admin area, or maybe directly to the mysql database?
    Maybe finishing the script may repair everything.
    Thanks! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • @r-a-y

    Keymaster

    Sorry to hear you are experiencing trouble.

    You could try adapting the friend count script:
    https://buddypress.trac.wordpress.org/browser/tags/2.5.3/src/bp-core/admin/bp-core-admin-tools.php#L168

    Or, if you are familiar with wp-cli, you could convert that script into a wp-cli command:
    http://wp-cli.org/docs/commands-cookbook/

    Then, you could run the script through wp-cli.

    @djpaul

    Keymaster

    I’ve created a bug report for this issue so we can improve it in future

    https://buddypress.trac.wordpress.org/ticket/7137

    @castresana

    Participant

    Thank you for the answers!

    I’m working on editing the script to see if I can solve it.

    @djpaul
    I don’t know if it might be useful, but I had an idea.
    Since I believe I’m not the only one with large communities, maybe the Repair Tools should run the script by rows. Run for 5000 rows, and then autorefresh, and run another 5000 rows. This way the database wouldn’t suffer that much.
    It would take time, but anyway, it’s a tab opened on the browser that is running that script while you are working somewhere else. I believe this might work. What do you think?
    Anyway, thanks for the help!

    Juan

    @espellcaste

    Moderator

    BuddyPress has a CLI command now you can use.

    wp bp tool repair friend-count

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Friends module not working after clicking on “Buddypress Repair Tools”’ is closed to new replies.
Skip to toolbar