Biggest issue with that error, that I mentally complain about any time I see it, is that it gives zero indication of the actual source of the issue. Quite frustrating 😀
That said, the best I can say is check if you have error logging enabled with your hosting account, and if so, check what’s available in the logs that look suspect. Especially anything that mentions “Fatal error” or “Fatal PHP error”.
Thread Starter
DJF3
(@djf3)
Haha, I agree.
So I was able to turn on some logging and this is the result:
[05-Apr-2018 21:33:13 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bp_core_process_spammer_status() in /home/username/mydomain.com/wp-content/plugins/bp-registration-options/includes/admin.php:270
Stack trace:
#0 /home/username/mydomain.com/wp-includes/class-wp-hook.php(286): bp_registration_options_form_actions('')
#1 /home/username/mydomain.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 /home/username/mydomain.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /home/username/mydomain.com/wp-admin/admin.php(156): do_action('admin_init')
#4 {main}
thrown in /home/username/mydomain.com/wp-content/plugins/bp-registration-options/includes/admin.php on line 270
Thread Starter
DJF3
(@djf3)
Just downloaded all plugin files and the function
bp_core_process_spammer_status
only appears to be in file ‘admin.php’.
When checking the github repo I notice the same thing.
?
Thread Starter
DJF3
(@djf3)
BTW, I just commented out the line causing this error and a different error appears:
And this function “bp_is_active()” does not appear to be defined in any of the bp-reg-options plugin.
[05-Apr-2018 21:57:34 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bp_is_active() in /home/username/mydomain.com/wp-content/plugins/bp-registration-options/includes/core.php:128
Stack trace:
#0 /home/username/mydomain.com/wp-includes/class-wp-hook.php(286): bp_registration_options_bp_core_register_account(11)
#1 /home/username/mydomain.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 /home/username/mydomain.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /home/username/mydomain.com/wp-includes/user.php(1773): do_action('user_register', 11)
#4 /home/username/mydomain.com/wp-includes/user.php(2034): wp_insert_user(Array)
#5 /home/username/mydomain.com/wp-includes/user.php(2409): wp_create_user('usertest9', 'vGlCsvY7z5te', 'dirkjanu+userte...')
#6 /home/username/mydomain.com/wp-login.php(784): register_new_user('usertest9', 'dirkjanu+userte...')
#7 {main}
thrown in /home/username/mydomain.com/wp-content/plugins/bp-registration-options/includes/core.php on line 128
Thread Starter
DJF3
(@djf3)
So sorry for the many updates, but just wanted to let you know that a membership deny does work well and the user received the email within a second after I clicked deny.
[ Please do not bump. ]
Forgive me, I’m not sure why I didn’t see any of these replies come in.
I do not presently know why you may be experiencing those fatal errors of undefined functions, because we don’t attempt to use them until well after they should be loaded.
bp_core_process_spammer_status
isn’t used until admin_init
hook, and bp_is_active
is on user_register
hook.
Do you know if you’re doing any odd or unique customizations for BuddyPress itself? Perhaps try re-uploading the BuddyPress core files in case somehow a recent update was only partially done?