Your cart is currently empty!
Selecting a location group during user registration (part 2)
—
by
Hi George,
This is regards topic: https://www.itthinx.com/topic/selecting-a-location-group-during-user-registration/
I wonder what sort of group settings are required for each group in:
Privacy: Options: Public; Private; Hidden
I had it on Private, but now I changed it to Public.
Who can invite others to this group? Options: All group members; Group admins and mods only; Group admins only.
Now, I selected: Group admins only.
This is the log I got:
2024-08-28T21:48:34+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function bp_groups_clear_group_creator_cache(), 1 passed in /opt/bitnami/wordpress/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php:101 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php”,”line”:101},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): bp_groups_clear_group_creator_cache()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /bitnami/wordpress/wp-content/plugins/groups/lib/core/class-groups-group.php(499): do_action()”,”#4 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups-add.php(157): Groups_Group::create()”,”#5 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups.php(59): groups_admin_groups_add_submit()”,”#6 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): groups_admin_groups()”,”#7 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#8 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#9 /opt/bitnami/wordpress/wp-admin/admin.php(259): do_action()”,”#10 {main}”,”thrown”]}
2024-08-28T21:59:14+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function bp_groups_clear_group_creator_cache(), 1 passed in /opt/bitnami/wordpress/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php:101 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php”,”line”:101},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): bp_groups_clear_group_creator_cache()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /bitnami/wordpress/wp-content/plugins/groups/lib/core/class-groups-group.php(499): do_action()”,”#4 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups-add.php(157): Groups_Group::create()”,”#5 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups.php(59): groups_admin_groups_add_submit()”,”#6 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): groups_admin_groups()”,”#7 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#8 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#9 /opt/bitnami/wordpress/wp-admin/admin.php(259): do_action()”,”#10 {main}”,”thrown”]}
2024-08-28T22:36:31+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function bp_groups_clear_group_creator_cache(), 1 passed in /opt/bitnami/wordpress/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php:101 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php”,”line”:101},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): bp_groups_clear_group_creator_cache()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /bitnami/wordpress/wp-content/plugins/groups/lib/core/class-groups-group.php(499): do_action()”,”#4 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups-add.php(157): Groups_Group::create()”,”#5 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups.php(59): groups_admin_groups_add_submit()”,”#6 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): groups_admin_groups()”,”#7 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#8 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#9 /opt/bitnami/wordpress/wp-admin/admin.php(259): do_action()”,”#10 {main}”,”thrown”]}
2024-08-28T22:37:47+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function bp_groups_clear_group_creator_cache(), 1 passed in /opt/bitnami/wordpress/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php:101 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php”,”line”:101},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): bp_groups_clear_group_creator_cache()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /bitnami/wordpress/wp-content/plugins/groups/lib/core/class-groups-group.php(499): do_action()”,”#4 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups-add.php(157): Groups_Group::create()”,”#5 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups.php(59): groups_admin_groups_add_submit()”,”#6 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): groups_admin_groups()”,”#7 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#8 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#9 /opt/bitnami/wordpress/wp-admin/admin.php(259): do_action()”,”#10 {main}”,”thrown”]}
2024-08-28T22:39:55+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function bp_groups_clear_group_creator_cache(), 1 passed in /opt/bitnami/wordpress/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php:101 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php”,”line”:101},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): bp_groups_clear_group_creator_cache()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /bitnami/wordpress/wp-content/plugins/groups/lib/core/class-groups-group.php(499): do_action()”,”#4 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups-add.php(157): Groups_Group::create()”,”#5 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups.php(59): groups_admin_groups_add_submit()”,”#6 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): groups_admin_groups()”,”#7 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#8 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#9 /opt/bitnami/wordpress/wp-admin/admin.php(259): do_action()”,”#10 {main}”,”thrown”]}
2024-08-28T22:40:35+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function bp_groups_clear_group_creator_cache(), 1 passed in /opt/bitnami/wordpress/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php:101 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php”,”line”:101},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): bp_groups_clear_group_creator_cache()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /bitnami/wordpress/wp-content/plugins/groups/lib/core/class-groups-group.php(499): do_action()”,”#4 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups-add.php(157): Groups_Group::create()”,”#5 /bitnami/wordpress/wp-content/plugins/groups/lib/admin/groups-admin-groups.php(59): groups_admin_groups_add_submit()”,”#6 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): groups_admin_groups()”,”#7 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#8 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#9 /opt/bitnami/wordpress/wp-admin/admin.php(259): do_action()”,”#10 {main}”,”thrown”]}
2024-08-28T22:51:27+00:00 CRITICAL Uncaught Error: Undefined constant “‘gform_user_registered’” in /bitnami/wordpress/wp-content/plugins/groups-gravityforms/includes/class-groups-gravity-forms-handler.php:159 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/groups-gravityforms/includes/class-groups-gravity-forms-handler.php”,”line”:159},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): Groups_Gravity_Forms_Handler::wp_init()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /opt/bitnami/wordpress/wp-settings.php(700): do_action()”,”#4 /bitnami/wordpress/wp-config.php(111): require_once(‘…’)”,”#5 /opt/bitnami/wordpress/wp-load.php(50): require_once(‘…’)”,”#6 /opt/bitnami/wordpress/wp-cron.php(46): require_once(‘…’)”,”#7 {main}”,”thrown”]}
2024-08-28T22:51:27+00:00 CRITICAL Uncaught Error: Undefined constant “‘gform_user_registered’” in /bitnami/wordpress/wp-content/plugins/groups-gravityforms/includes/class-groups-gravity-forms-handler.php:159 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/groups-gravityforms/includes/class-groups-gravity-forms-handler.php”,”line”:159},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): Groups_Gravity_Forms_Handler::wp_init()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /opt/bitnami/wordpress/wp-settings.php(700): do_action()”,”#4 /bitnami/wordpress/wp-config.php(111): require_once(‘…’)”,”#5 /opt/bitnami/wordpress/wp-load.php(50): require_once(‘…’)”,”#6 /opt/bitnami/wordpress/wp-admin/admin.php(34): require_once(‘…’)”,”#7 /opt/bitnami/wordpress/wp-admin/plugin-editor.php(10): require_once(‘…’)”,”#8 {main}”,”thrown”]}
2024-08-28T22:56:44+00:00 CRITICAL Uncaught Error: Undefined constant “‘gform_user_registered’” in /bitnami/wordpress/wp-content/plugins/groups-gravityforms/includes/class-groups-gravity-forms-handler.php:159 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/groups-gravityforms/includes/class-groups-gravity-forms-handler.php”,”line”:159},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): Groups_Gravity_Forms_Handler::wp_init()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /opt/bitnami/wordpress/wp-settings.php(700): do_action()”,”#4 /bitnami/wordpress/wp-config.php(111): require_once(‘…’)”,”#5 /opt/bitnami/wordpress/wp-load.php(50): require_once(‘…’)”,”#6 /opt/bitnami/wordpress/wp-admin/admin.php(34): require_once(‘…’)”,”#7 /opt/bitnami/wordpress/wp-admin/plugin-editor.php(10): require_once(‘…’)”,”#8 {main}”,”thrown”]}
2024-08-28T22:56:44+00:00 CRITICAL Uncaught Error: Undefined constant “‘gform_user_registered’” in /bitnami/wordpress/wp-content/plugins/groups-gravityforms/includes/class-groups-gravity-forms-handler.php:159 CONTEXT: {“error”:{“type”:1,”file”:”/bitnami/wordpress/wp-content/plugins/groups-gravityforms/includes/class-groups-gravity-forms-handler.php”,”line”:159},”backtrace”:[””,”#0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): Groups_Gravity_Forms_Handler::wp_init()”,”#1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()”,”#3 /opt/bitnami/wordpress/wp-settings.php(700): do_action()”,”#4 /bitnami/wordpress/wp-config.php(111): require_once(‘…’)”,”#5 /opt/bitnami/wordpress/wp-load.php(50): require_once(‘…’)”,”#6 /opt/bitnami/wordpress/wp-cron.php(46): require_once(‘…’)”,”#7 {main}”,”thrown”]}
Comments
One response to “Selecting a location group during user registration (part 2)”
Hi again,
The settings you describe sound more of BuddyPress settings which don’t relate to Groups plugin, BuddyPress provides its own feature which happens to be also called groups.
As for the errors you shared,
there are errors indicating
Too few arguments to function bp_groups_clear_group_creator_cache()
so basically you’re calling this function with one argument instead of two.
and also errors indicating
Uncaught Error: Undefined constant "‘gform_user_registered’"
which is probably deriving from a typo, because this is a valid GravityForms hook and not a constant.
The line code that this occurs though is worrying because in the Groups GravityForms addon we don’t use it as a constant. Is it possible that you have modified the addon directly? If that’s true you should avoid this and create a new dedicated plugin for your implementation.
I think it’s better if I mention once more, that for such implementations, you need to have PHP and WP API skills, so it’s always better to also consult a developer if you feel uncertain.
Kind regards,
George