Fatal error 9.6.7.3 - apparent conflict with SimpleGooglereCaptcha

Cerber version: Pro 9.6.7.3

I am getting HTTP 500 errors when attempting to edit a page on a WP Multisite subsite with Cerber enabled. If I disable Cerber, I can edit the page.

Path:
…/members/wp-admin/post.php?post=37917&action=edit

Traffic Inspector:
/members/wp-admin/post.php?post=37917&action=edit

HTTP 500 Internal Server Error IP whitelisted 246 ms

PHP error log:
[21-Mar-2025 15:57:41 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type Closure as array in /home/usernameredacted/public_html/wp-content/plugins/buddyboss-app/include/Integrations/SimpleGooglereCaptcha/Main.php:70
Stack trace:
#0 /home/usernameredacted/public_html/wp-content/plugins/buddyboss-app/include/Integrations/SimpleGooglereCaptcha/Main.php(52): BuddyBossApp\Integrations\SimpleGooglereCaptcha\Main->force_remove_filter(‘lostpassword_po…’, ‘\SimpleGoogleRe…’, ‘verify’)
#1 /home/usernameredacted/public_html/wp-includes/class-wp-hook.php(324): BuddyBossApp\Integrations\SimpleGooglereCaptcha\Main->remove_hook(Object(WP_REST_Server))
#2 /home/usernameredacted/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#3 /home/usernameredacted/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/usernameredacted/public_html/wp-includes/rest-api.php(618): do_action(‘rest_api_init’, Object(WP_REST_Server))
#5 /home/usernameredacted/public_html/wp-includes/rest-api.php(576): rest_get_server()
#6 /home/usernameredacted/public_html/wp-includes/rest-api.php(2957): rest_do_request(Object(WP_REST_Request))
#7 [internal function]: rest_preload_api_request(Array, ‘/wp/v2/types?co…’)
#8 /home/usernameredacted/public_html/wp-includes/block-editor.php(753): array_reduce(Array, ‘rest_preload_ap…’, Array)
#9 /home/usernameredacted/public_html/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))
#10 /home/usernameredacted/public_html/wp-admin/post.php(187): require(‘/home/integrity…’)
#11 {main}
thrown in /home/usernameredacted/public_html/wp-content/plugins/buddyboss-app/include/Integrations/SimpleGooglereCaptcha/Main.php on line 70

Final comment:
Despite the error pointing to SimpleGooglereCaptcha within the BuddyBossApp plugin, disabling that plugin does not resolve the error. Disabling WP Cerber, however, does.

I received the following response from BuddyBoss support regarding this issue.


Hello Joel,

This is Nayeem from the BuddyBoss Senior Technical Support team to assist you with your issue. .

We are not compatible with the WP Cerber plugin. Also, it seems it’s not available in the WordPress.org repository.

You may need to apply the patch to make WP Cerber work with the BuddyBoss App.

Replace the marked code block above with the code below.

public function force_remove_filter( $tag, $class, $method ) {
global $wp_filter;
if ( ! isset( $wp_filter[ $tag ] ) || ! is_a( $wp_filter[ $tag ], ‘WP_Hook’ ) ) {
return;
}
$hook = $wp_filter[ $tag ];
foreach ( $hook->callbacks as $priority => $callbacks ) {
foreach ( $callbacks as $identifier => $function ) {
if ( is_array( $function[‘function’] )
&& is_object( $function[‘function’][0] )
&& is_a( $function[‘function’][0], $class )
&& $method === $function[‘function’][1]
) {
remove_filter( $tag, [ $function[‘function’][0], $method ], $priority );
}
}
}
}

That will help to resolve the error you are facing.

But though we will recommend using most popular plugins WordFence for security with BuddyBoss App

Thanks for your patience and understanding on this. Have a nice day

Kind regards,

Nayeem - Senior Technical Support Specialist


BuddyBoss Support Team