Support » Plugin: BuddyPress Registration Options » Uncaught Error: Call to undefined function bp_is_active()

  • Resolved bluedogranch

    (@bluedogranch)


    Hi,

    I’m using this plugin with bbPress 2.5.14 and I’m getting the error “Uncaught Error: Call to undefined function bp_is_active()” after a user registers at the bbPress registration page (set up using using the shortcode [bbp-register]).

    After registration, the site throws a white page and goes to the URL example/wp-login.php?wpe-login=true . The user does not get “pending registration” email.

    But the user registration shows up to be approved in member requests; and the user gets the ‘deny” email when I deny the registration. And if I try to register again with the same email, I get the WP error that the email is in use at the same URL example.com/wp-login.php?wpe-login=true

    How do get around this error? I don’t want to use BuddyPress. Can I disable the checking for bp_is_active()?

    Thanks

    • This topic was modified 1 year, 7 months ago by bluedogranch.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    hey @bluedogranch

    Can you try out this hotfixed version of the plugin below?
    https://www.dropbox.com/s/kwj95olmc3usiyt/bp-registration-options-bp-is-active.zip?dl=0

    I added some function exists checks that will hopefully address majority of your issues. However, if there are still some left over after that part is addressed, let me know and we can continue to troubleshoot at that point.

    Thanks! That mostly works. I can see what you did with if ( function_exists. Registration and password setting emails work.

    But I got one more crash when I approved the user in the plugin admin: Uncaught Error: Call to undefined function bp_core_process_spammer_status() in /plugins/bp-registration-options/includes/admin.php:274

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    wrap that spot in the following code:

    if ( function_exists( 'bp_core_process_spammer_status' ) ) {
    	bp_core_process_spammer_status( $user_id, 'ham' );
    }
    

    I have a newly open issue on GitHub to handle ALL BuddyPress function usage and make sure we can use them first. Just doing hotpatched version for you, as we don’t have any large reports of issues yet. Majority of our users do use BuddyPress too.

    I appreciate it; I’m trying to finish a simple, private forum for someone. And I didn’t have the function_exists code correct on my first try, but yours works and keeps admin from white screening.

    Except, it’s always something. The password set email “Your username and password info” does not go out, so the if function_exists must kill the next function in admin.php that sends the email. No errors in debug.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    From what I can see, that one is not looking like something from our plugin. We don’t mention anything about username/passwords. That would be bbPress and/or WordPress core. We tap into things after registration is done, and insert some user meta to handle our pending status.

    Ah, you’re right. Seems to be something else; the emails are going out now. I think all the errors are fixed. Thanks for your help! I have a few more questions I’ll post in new topics.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uncaught Error: Call to undefined function bp_is_active()’ is closed to new replies.