Support » Plugin: Block, Suspend, Report for BuddyPress » Getting error block (under profile settings)

  • Resolved sumit44sngh

    (@sumit44sngh)


    getting following error in block under profile settings page:

    Fatal error: Uncaught Error: Call to undefined function remove_user() in /home/ukfjrvcdphl3/public_html/wp-content/plugins/bp-toolkit/includes/class-bp-toolkit-block.php:368 Stack trace: #0 /home/ukfjrvcdphl3/public_html/wp-includes/class-wp-hook.php(287): BPTK_Block->load_nav_content(”) #1 /home/ukfjrvcdphl3/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /home/ukfjrvcdphl3/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/ukfjrvcdphl3/public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/plugins.php(58): do_action(‘bp_template_con…’) #4 /home/ukfjrvcdphl3/public_html/wp-includes/template.php(725): require(‘/home/ukfjrvcdp…’) #5 /home/ukfjrvcdphl3/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(155): load_template(‘/home/ukfjrvcdp…’, false) #6 /home/ukfjrvcdphl3/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(61): bp_locate_template(Array, true, false) #7 in /home/ukfjrvcdphl3/public_html/wp-content/plugins/bp-toolkit/includes/class-bp-toolkit-block.php on line 368

    PLEASE SUGGEST SOLUTION FOR IT.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ben at Bouncingsprout Studio

    (@bouncingsprout)

    Hey @sumit44sngh,

    Can you tell me a bit more please:

    1. when did this start happening?
    2. Are you currently in debug mode?
    3. Have you recently installed any new plugins or activated a new theme?
    4. Have you tried disabling all plugins so you are left only with BuddyPress and Block, Suspend, Report? Do you still get the error?
    5. Have you temporarily reverted your theme back to a default one (Twenty Twenty for example)? Do you still get the error?
    6. What screen are you seeing this on?

    Thanks,

    Ben R

    Thread Starter sumit44sngh

    (@sumit44sngh)

    yes.. tried all still not working

    Plugin Author Ben at Bouncingsprout Studio

    (@bouncingsprout)

    I’m very sorry you are receiving this error. Sadly, I can’t replicate it, and it doesn’t seem to affect any other user.

    If you are able to find a solution, please let me know.

    I will mark this as resolved, unless further details come to light.

    Enjoy your week,

    Ben R

    Hi,

    I have the same error and if we delete the row in the database that contains the serialized list of blocked members the problem goes away.

    I did a bit more testing and it seems that the problem happens when a user A is blocked by a user B, and the user A account is deleted.

    The error starts as:

    Uncaught Error: Call to undefined function remove_user() in /[..]/[..]/[..]/[..]/wp-content/plugins/bp-toolkit/includes/class-bp-toolkit-block.php:368

    By commenting out the call to the “remove_user” function on that line the page is fixed, but that is obviously not a viable solution.

    • This reply was modified 10 months, 1 week ago by jonoinfrance.
    • This reply was modified 10 months, 1 week ago by jonoinfrance.
    Plugin Author Ben at Bouncingsprout Studio

    (@bouncingsprout)

    Hey @jonoinfrance,

    Thank you so much for that information. This is exactly what we need from users to start working on a problem.

    I will try and replicate the issue in the next few hours, and assuming I can, I will release an urgent patch by the end of the weekend at the latest.

    I’ll also keep you updated on here with progress.

    Thanks once again,

    Ben

    Plugin Author Ben at Bouncingsprout Studio

    (@bouncingsprout)

    This has now been fixed. Please update to version 2.0.5.

    Thanks once again for your help. It was invaluable.

    Ben

    Hi Ben,

    You are welcome for the error info, I’m glad you were able to fix the bug so fast!

    Got the update this morning, thanks!

    A quick piggyback while I’m at it though. I realized that when reporting a user the drop down menu options are not translatable using the PO/MO file of the plugin.
    I have installed the plugin on a french website and this particular point is a problem.
    For the time being I’ve changed the values stored in the database, which works but again, not a viable solution long term. Would it be possible to make these values translatable through the PO/MO files?
    Worst case could be in the plugin activation function where the database values are instanciated?

    I realize that you offer a premium version that allows customization of the report reasons, but in this case it is only a translation that is needed.

    Thanks!

    Plugin Author Ben at Bouncingsprout Studio

    (@bouncingsprout)

    That’s awesome @jonoinfrance!

    With regards to the other issue, I have created a separate topic HERE, as you are the second person to ask about that issue in the last month. I hope that helps explains it.

    All the best,

    Ben

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Getting error block (under profile settings)’ is closed to new replies.