fcsquirrel
Forum Replies Created
-
Forum: Plugins
In reply to: [User Switching] Prevent Switching to specific named rolesHi John, thank you! Appreciate your work on this plugin. The link seemed to work for me to land on the FAQ about switch_users. However, my issue is most similar to this other question I found:
https://ww.wp.xz.cn/support/topic/restricting-roles-a-user-can-switch-to/I need a role that is allowed to switch to the customer role, for example, but is unable to switch to another user of their same role. (It’s again the example of a shop manager/sales role who shouldn’t be allowed to switch to one of their colleagues’ accounts. So I’m thinking of defining a list of roles that they can switch to, which wouldn’t include another user of their same role.
So they must still have the switch_users capability, but with a customization to disallow them from switching to anyone but customers. I’m mostly just hoping this might have been solved by someone already, but if not I plan to determine a way to custom code a solution that wouldn’t require customizing your plugin directly.
Thank you!
Hello @wpsolutions – I encountered this issue today with a basic blog URL (not user-related) but it was zipped by twitter. Has this fix been released to the latest plugin version? If not, is there a fix I can implement as well?
Thank you – I am on 1.1.0 and the error is still occurring. The list of plugins used is quite extensive.
WooCommerce
WooCommerce Subscriptions
WooCommerce Memberships
Autochimp
Gravity Forms
WooChimp
WP Super CacheHello – may have spoken too soon.
Though I do have the latest plugin, I am still seeing this error:
PHP Fatal error: Uncaught Error: Call to a member function set_job() on boolean in /wp-content/plugins/mailchimp-for-woocommerce/includes/vendor/queue/classes/worker/wp-worker.php:48
Stack trace:
#0 /wp-content/plugins/mailchimp-for-woocommerce/includes/vendor/queue/classes/worker/wp-http-worker.php(63): WP_Worker->process_next_job()
#1 /wp-includes/class-wp-hook.php(298): WP_Http_Worker->maybe_handle(”)
#2 /wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
#3 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#4 /wp-admin/admin-ajax.php(91): do_action(‘wp_ajax_http_wo…’)
#5 {main}
thrown in /wp-content/plugins/mailchimp-for-woocommerce/includes/vendor/queue/classes/worker/wp-worker.php on line 48Hello – I believe changing to version 1.0.9 has corrected the error. The version we were using (1.0.70) said it was the latest version – is that true?