David Marín Carre?o
Forum Replies Created
-
Closing issue: the problem was finally caused by a wrong installed version of the premium plugin.
Also, please note that this feature is only available starting in version 20240204 of the plugin.
Hi!
Please get sure that you have installed the Premium version of the plugin (obtained from Freemius), and that your license key has been correctly activated in the corresponding plugin entry at /wp-admin/plugins.php.After that, you should see in the products edition page a new “Role expiration enabled” checkbox.
- This reply was modified 6 days, 10 hours ago by David Marín Carre?o.
@olegus25 I just released version 20250204, with support for an scheduled role unassignment, among other improvements, in the premium version.
Hey, this is a good feature request.
I’ll have it in mind for the next release.
@olegus25 FYI, I just released a new premium version, now supporting subscriptions managed by YITH WooCommerce Subscription and WP Swings Subscriptions for WooCommerce plugins.
Hi!
I just released v.20250130 with a fix for this issue.
Now, if the plugin is configured to replace roles (instead of adding them), we check if the user is an administrator and, if so, we won’t proceed with the role assignation.
Maybe, but this is, by far, the most-used subscriptions plugin for WooCommerce and with, IMHO, the best support.
At this moment, the premium plugin supports only the integration with WooCommerce Subscriptions
Maybe in the future it will support other Subscriptions plugins.
You can purchase it from https://checkout.freemius.com/plugin/17666/plan/29380/
Alternately, from the official plugin home page: https://davefx.com/en/dfx-automatic-role-changer-for-woocommerce/
Hi!
The Premium version of the plugin allows associating the role assignation to a subscription lifecycle.
While upstream decides to fix this, we can temporarily patch the problem by adding this code to the beginning of the dynamic_toggle_post_purchase_popup_campaign_key_field() function, in the line 173 of wp-content/plugins/referralcandy-for-woocommerce/includes/class-wc-referralcandy-integration.php.
// Only if the current backend page is the woocommerce settings page
if ( get_current_screen()->base !== 'woocommerce_page_wc-settings' ) {
return;
}
if ( ! isset($_GET['page'], $_GET['section']) ||
$_GET['page'] !== 'wc-settings' ||
$_GET['section'] !== 'referralcandy'
) {
return;
}Forum: Plugins
In reply to: [Members - Membership & User Role Editor Plugin] Warning with WordPress 6.7The issue is ultimately caused because the plugin initialization code tries to load translated strings:
/www/1_768/public/wp-blog-header.php 13 calling require_once("\/www\/1_768\/public\/wp-load.php")
/www/1_768/public/wp-load.php 50 calling require_once("\/www\/1_768\/public\/wp-config.php")
/www/1_768/public/wp-config.php 136 calling require_once("\/www\/1_768\/public\/wp-settings.php")
/www/1_768/public/wp-settings.php 526 calling include_once("\/www\/1_768\/public\/wp-content\/plugins\/members\/members.php")
/www/1_768/public/wp-content/plugins/members/members.php 487 calling members_plugin()
/www/1_768/public/wp-content/plugins/members/members.php 483 calling get_instance()
/www/1_768/public/wp-content/plugins/members/members.php 95 calling includes()
/www/1_768/public/wp-content/plugins/members/members.php 209 calling require_once("\/www\/1_768\/public\/wp-content\/plugins\/members\/inc\/functions-users.php")
/www/1_768/public/wp-content/plugins/members/inc/functions-users.php 14 calling members_explicitly_deny_caps()
/www/1_768/public/wp-content/plugins/members/inc/functions-options.php 35 calling members_get_setting("explicit_denied_caps")
/www/1_768/public/wp-content/plugins/members/inc/functions-options.php 107 calling members_get_default_settings()
/www/1_768/public/wp-content/plugins/members/inc/functions-options.php 132 calling esc_html__("Sorry, but you do not have permission to view this content.", "members")
/www/1_768/public/wp-includes/l10n.php 339 calling translate("Sorry, but you do not have permission to view this content.", "members")
/www/1_768/public/wp-includes/l10n.php 194 calling get_translations_for_domain("members")
/www/1_768/public/wp-includes/l10n.php 1408 calling _load_textdomain_just_in_time("members")
/www/1_768/public/wp-includes/l10n.php 1370 calling _doing_it_wrong("_load_textdomain_just_in_time", "Function _load_textdomain_just_in_time was called <strong>incorrectly<\/strong>. Translation loading for the <code>members<\/code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init<\/code> action or later. Please see <a href=\"https:\/\/developer.www.ads-software.com\/advanced-administration\/debug\/debug-wordpress\/\">Debugging in WordPress<\/a> for more information. (This message was added in version 6.7.0.)", "(This message was added in version 6.7.0.)")
in <b>/www/1_768/public/wp-includes/functions.php</b> on line <b>6160</b><br />Hi!
Just to confirm: you are operating the plugin so it replaces roles, instead of adding them, right?
Yes, in that case we should prevent replacing the administrator role from admins.
I’ll work to ensure that.I’ll keep you posted. Thanks for the report!
Hi!
I just added a new feature to the plugin, so you can choose when the role is assigned (on order payment, and/or on status change).
Please verify if this solves your issue.
Thanks for your suggestion!