Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 210725

groups_created_group conflicts with BuddyPress

$
0
0

Replies: 0

The Groups plugin has an action called “groups_created_group” which conflicts with an action of the same name in BuddyPress.

./buddypress/bp-groups/bp-groups-functions.php: do_action( 'groups_created_group', $group->id, $group );
./groups/lib/core/class-groups-group.php:                                      do_action( 'groups_created_group', $result );

When I create a new group this triggers a Fatal PHP error (PHP 7.1). Can you change the name of this action?
Here’s the error I get:

Fatal error: Uncaught ArgumentCountError: Too few arguments to function bp_groups_clear_group_creator_cache(), 1 passed in /var/www/html/mafw.club/public_html/wp-includes/class-wp-hook.php on line 298 and exactly 2 expected in /var/www/html/mafw.club/public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php:101 Stack trace: #0 /var/www/html/mafw.club/public_html/wp-includes/class-wp-hook.php(298): bp_groups_clear_group_creator_cache(’14’) #1 /var/www/html/mafw.club/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #2 /var/www/html/mafw.club/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /var/www/html/mafw.club/public_html/wp-content/plugins/groups/lib/core/class-groups-group.php(291): do_action(‘groups_created_…’, ’14’) #4 /var/www/html/mafw.club/public_html/wp-content/plugins/groups/lib/admin/groups-admin-groups-add.php(152): Groups_Group::create(Array) #5 /var/www/html/mafw.club/public_html/wp-content/plugins/groups/lib/admin/groups-admin-groups.php( in /var/www/html/mafw.club/public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php on line 101


Viewing all articles
Browse latest Browse all 210725

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>