Hi,
I’ve installed the Groups plugin on a local staging site. I’m getting the following error message:
“Warning: Undefined array key 1 in /Applications/MAMP/htdocs/riders2025/wp-admin/menu-header.php on line 202”
When I go there it’s this:
if ( ! current_user_can( $sub_item[1] ) ) {
Any ideas how to resolve this?
Best, K
]]>Is there a function to get a list of all inherited users from all the sub-groups of a parent group?
For exmple, if I retrieve the users from the parent group, it would like to include all users from all sub-groups?
]]>Do you have a api function for removing a user from a group?
]]>Hi guys,
A user belongs to a group from day A to day B, so he can only have access to the material generated between those two dates.
Can this be solved with this plugin?
Thanks in advance!
Kind regards,
Raquel.
Hi Team,
Our mutual client is looking for assistance on enabling the Groups plugin to their storefront. We do not enable storefronts ourselves as TradeCentric but this is a necessary component to their project. Please contact us at [email protected] for more details around the client.
Hello, I’m looking to list the ‘User Groups’ the customers are assigned to, into the WooCommerce New Order emails sent to Admins.
I have already added custom data (into the functions.php file), to display username & ID into these emails, using this code:
/**
function add_user_id_to_woocommerce_emails( $fields, $sent_to_admin, $order ) {
$user_id = $order->get_customer_id();
$user_info = get_userdata( $user_id );
$fields[‘user_id’] = array(
‘label’ => __( ‘User ID’, ‘woocommerce’ ),
‘value’ => $user_id
);
$fields[‘username’] = array(
‘label’ => __( ‘Username’, ‘woocommerce’ ),
‘value’ => $user_info->user_login
);
return $fields;
}
—
I found these links, but I can’t seem to get it working?
https://docs.itthinx.com/document/groups/shortcodes/groups_user_groups/
https://docs.itthinx.com/document/groups/api/examples/
We use both the ‘Groups for Woocommerce‘ and the free ‘Groups‘ plugins for selling educational course memberships on our site.
Unfortunately since recently, the free Groups plugin is stopping us from editing anything in Elementor / Elementor Pro. When trying to open any template or any page created with Elementor, we are seeing a fatal error (see below).
We have traced the issue back to the free Groups plugin by deactivating all plugins and activating them again one by one. When we deactivate the free Groups plugin the error disappears and we are allowed to edit in Elementor again. The Groups for Woocommerce plugin is not giving any problems though. It seems the free Groups plugin is somehow blocking editing in Elementor as the error states that access is denied. We have looked at the Groups plugin’s settings, but can’t immediately find a setting that remedies this issue.
Below you can see the fatal error that is shown with the WordPress debug function active:
Fatal error: Uncaught Exception: Access denied. in /home/000000.cloudwaysapps.com/hidden_name/public_html/wp-content/plugins/elementor/core/settings/page/manager.php:105 Stack trace: #0 /home/000000.cloudwaysapps.com/hidden_name/public_html/wp-content/plugins/elementor/core/base/document.php(1790): Elementor\Core\Settings\Page\Manager->ajax_before_save_settings() #1 /home/000000.cloudwaysapps.com/hidden_name/public_html/wp-content/plugins/elementor/core/base/document.php(849): Elementor\Core\Base\Document->save_settings() #2 /home/000000.cloudwaysapps.com/hidden_name/public_html/wp-content/plugins/elementor-pro/modules/global-widget/documents/widget.php(61): Elementor\Core\Base\Document->save() #3 /home/000000.cloudwaysapps.com/hidden_name/public_html/wp-content/plugins/elementor/core/base/document.php(1148): ElementorPro\Modules\GlobalWidget\Documents\Widget->save() #4 /home/000000.cloudwaysapps.com/hidden_name/public_html/wp-content/plugins/elementor/core/base/document.php(1120): Elementor\Core\Base\Document->convert_to_eleme in /home/000000.cloudwaysapps.com/hidden_name/public_html/wp-content/plugins/elementor/core/settings/page/manager.php on line 105
There has been a critical error on this website. Please check your site admin email inbox for instructions.
(P.S. we have altered some subdomain and folder parts of the urls in the error for privacy reasons)
Thanks for your help in advance.
Kind regards,
Rob
Hi @proaktion,
First, thank you for your plugin. It is very useful.
I’ve done the Portuguese translation for it, and I’d like to check if you can credit me on your page: “Eric Sornoso from https://Mealfan.com “
Thank you in advance!
]]>Hi, i have a setup with a simple wordpress site with just a handful of pages. Current wordpress version 6.5.5 with the Twenty-Twenty-Three theme.
I am using LoginPress to style the login screen and Groups+Groups 404 to limit access to all pages including the start page by allowing access only for “Registered” users and then redirecting in the Groups 404 settings to “Redirect to the WordPress login”. Redirect Status code is set to “301”.
This works most of the time but sometimes after successfully entering the credential the login screen is shown again. At this point the user is already logged in, entering the credentials again just ends up in the login screen again.
If one enters the URL of the site at this point instead of trying the login again, then the startpage is shown as intended (as the login was successful).
It is not clear to me why sometimes the user ends up in a login loop and why this setup allows doing another login after a user has already logged in successfully instead of forwarding the the user to the correct page. It seems to happen quite often on an iphone with Safari browser, but i don’t think i have seen this issue with Chrome on my Mac Desktop at all.
Is this a known problem, are there any tips/recommendations for this type of configuration?
I saw Blubrry podcasting mentioned your software to create a paid podcasting feed for my members. I already set up my memberships using WooCommerce Memberships (see provided link) and am wondering if I use your plugin with BluBrry can I connect my existing membership tiers to groups to make this happen?
Thanks.
]]>Hi,
Is it possible, with this plugin, to enable edit permissions based on a user group? Users Tom and Jerry are authors, and member of the same group. I would like Tom could edit a post created by Jerry.
Is this possible?
best,
alan
]]>Hi,
We regularly (daily) change access to specific pages depending on which group (company) a user belongs to. As there are multiple pages to change access to, we use the bulk edit option. However, it appears that in the past day or so we can no longer remove groups from pages using this method. We can still go in and remove the group one page at a time and we can also still bulk edit and add a restriction, just not remove.
]]>Groups (version 3.0.0) PHP version 7.4.33 Error Details =
An error of type E_ERROR was caused in line 77 of the file
/public_html/wp-content/plugins/groups/lib/admin/class-groups-admin-notice.php.
Error message: Uncaught Error:
Call to undefined method Groups_User::current_user_can() in
/public_html/wp-content/plugins/groups/lib/admin/class-groups-admin-notice.php:77
Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(324): Groups_Admin_Notice::admin_init(”) #1 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /public_html/wp-admin/admin-ajax.php(45): do_action(‘admin_init’) #4 thrown
]]>Os usuários do meu marketplace n?o podem ter acesso ao backend. Qual a solu??o nesse caso?
Uso marketplace WCFM
]]>Considerando uma equipe de compras, um comprador teria permiss?o de realizar um pedido de compra somente após aprova??o do gestor. Como isso seria possível no ambiente da minha plataforma marketplace Wocommerce – WCFM – Yith ? Algum code snippet disponível?
]]>Hi! Is there a way to only give users in a group the capability of editing (create, modify or delete) users who belong to another group?
For example, I have a Boss in group “Company 1” and I want him to be able to edits the users of group “Employees of Company 1”.
Thanks!
]]>Is this plugin compatible with WordPress Multisite?
]]>is it possible to show a menu item only to certain group?
]]>I’m having difficulty configuring user groups on my WordPress site using your plugin. I’ve followed the documentation instructions, but the groups aren’t functioning as expected. How can I properly set up and manage user groups with your plugin?
]]>Hi,
Thank you for your plugin !
Is is compatible with any discount/pricing plugin ?
Thank you
Chloé
]]>Hey everyone,
I am using Groups plugin on my website and I would like to deactivate the possibility to add capabilities to a group. I only want to use the group restriction abilities, all other capabilities should be added role-based. Is it possible to deny access to this setting for all users who are granted to create groups?
If this does not exist yet, is it possible to create a feature request? (I am not able to create an account on the developer website) I was thinking about a simple checklist button in the options of this plugin.
I would really appreciate it.
Thanks and have a great day!
Susi
]]>Hi. How can I prevent restricted posts from appearing in custom WP_Query() for those that don’t have access? Using groups_filter_the_posts
?
If so, please provide an example because I am receiving errors so I must be doing something wrong. Thanks!
I intend to use two purchased extra extensions for the Groups plugin: (Specifically: ‘Groups Restrict Categories’ and ‘Groups File Access’).
My query is a common requirement, which is to use a license key whilst developing a site on a staging server, and then transfer the license key over to the live domain at ‘go live’. Will this work? I only ever need one site to work at any given time on one given domain (Can I remove the license key from a dev site and then enter the same key on my LIVE site) ?
Many thanks
]]>Hi,
I am trying to import a bunch of users using this plugin: https://www.ads-software.com/plugins/import-users-from-csv/
Its working fine except I need to add them to a specific group as set up by the Groups plugin. What is the field title I need to use to include that data?
I have tried various – groups_member, groups, group, group_ID, none of these work.
Thanks if you can help.
]]>I am using the woocommerce groups plugin to restrict access to certain pages based on their group. I have an issue where if i access the page while logged out (access should be restricted), it redirects to the restricted access page which is the ideal scenario. But now if i login and try to access the same page, it redirects again even though my login should be in the required group to allow access. It seems the restricted access is being cached. We have also disabled all caching plugins on the site.
We have temporarily implemented cache busting by using this code as a workaround:
var allLinks = document.querySelectorAll('.ld-course-list-items a');
allLinks.forEach((link) => {
link.href = link.href + '?' + (new Date()).getTime();
});
Is there a better way to prevent this from happening, as visiting the same url without the above query string appended still causes the same issue.
Thanks!
]]>Hi,
I have two versions of the same page: one for registered users and one for non-registered users, and only the correct one should appear in the menu. Is it possible to exclude registered users or other users groups from viewing a page and its menu item?
Thank you and best regards.
Hello, by default when we create a new WP account it’s adding the “registered” group, can we remove this ? Actually I don’t need the registered group at all. Can we also set the group selection to mandatory ? Can we also let only one group selection not multiple ?
]]>Hi there,
I noticed that the data for post counts gets stale over time on my site. I use the Redis Object Cache. Specifically, this is for WooCommerce orders (shop_order
)
If I force a cache invalidation here inGroups_Post_Access->wp_count_posts
the counts get recalculated properly.
I couldn’t find where the count cache gets cleared when posts transition. It looks like it’s here in the core handling.
Is this a bug or am I missing something ?
Thanks!
Alex
Hello there, great plugin guys!!
I would like to create a custom field for the groups, is it possible? Is “Groups” a custom post type that I can use with the ACF plugin?
]]>As of 11/7/2023, our client is getting a fatal error logging into their website – wordpress admin and customer front end log in. We have the groups plugin installed and did update it to the latest version.
However, when we login we get this:
Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\capabilities.php:878 Stack trace: #0 D:\inetpub\wwwroot\wordpress_OXUS\wp-content\plugins\groups\lib\access\class-groups-post-access.php(233): current_user_can() #1 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\class-wp-hook.php(324): Groups_Post_Access::posts_where() #2 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\plugin.php(256): WP_Hook->apply_filters() #3 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\class-wp-query.php(2717): apply_filters_ref_array() #4 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\class-wp-query.php(3824): WP_Query->get_posts() #5 D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\post.php(2452): WP_Query->query() #6 D:\inetpub\wwwroot\wordpress_OXUS\wp-content\plugins\advanced-custom-fields\includes\class-acf-internal-post-type.php(401): get_posts() #7 D:\inetpub\wwwroot\wordpress_OXUS\wp-content\plugins\advanced-custom-fields\includes\class-acf-internal-post-type.php(359): ACF in?D:\inetpub\wwwroot\wordpress_OXUS\wp-includes\capabilities.php?on line?878
Please help!
]]>