• Resolved KineticPulse

    (@kineticpulse)


    I noticed this was raised over a year ago, but it is still an issue.

    On user registration there is a white page, and the error log shows:

    PHP Fatal error: Uncaught Error: Call to undefined function bp_is_active() in …/public_html/wp-content/plugins/bp-registration-options/includes/core.php:130

    Obviously only a problem with BBPress installations, but as the plugin is advertised as supporting both it could probably do with addressing :-).

    I have added a ‘function exists’ clause around the offending lines for now, but it should be in the plugin.

    • This topic was modified 5 years, 6 months ago by KineticPulse.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Valid point regarding the bbPress only part and why that would cause this issue. The question ends up being how do we want to handle, and if we want to make BuddyPress a hard requirement, with bbPress being a nice inclusion, or indeed allow just bbPress.

    If I’m being honest, given the plugin name, I am kind of leaning more towards the former, with bbPress alone not being sufficient. Majority of the plugin’s code is around BuddyPress.

    Looking through the code, there are places where I’ve accounted for function_exists() before using, but there are still more than just this one that don’t. Those will probably be encountered as you start moderating users here. Just hasn’t happened quite yet. I’ll need to mull over if I want to function check guard against all of the BuddyPress functions used, or how else to maybe handle.

    Thread Starter KineticPulse

    (@kineticpulse)

    Thanks for the reply – in this case I’ll probably isolate the plugin from updates and add clauses where necessary. It probably just needs some more clarification in the description if you’re really just servicing BP

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    So, I just went over to our GitHub Tracker, and found https://github.com/WebDevStudios/BuddyPress-Registration-Options/issues/165 and it says “While we focus mostly on BuddyPress, it is intended to be possible to use with just bbPress.” from back in June 2018, so I unintentionally changed stances above. It is still an open issue slated for version 4.4.0, and I have added the newest notes above regarding other functions that need guarded against.

    So I still have decisions to make and work to do based on them.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught error bp_is_active() still an issue’ is closed to new replies.