WP-CLI won’t work with this plugin installed “You’re not allowed to do this”
-
Hi, I’m working on a WooCommerce site, lots of plugins, including Mailchimp for WooCommerce. All been working fine, I use WP-CLI for some maintenance tasks etc.
Recently, any WP-CLI command that actually loads the WP environment, e.g.
wp plugin list
generates this message (WP-CLI command fails… well, nothing happens…) :{"success":false,"data":{"message":"You're not allowed to do this","from":"mailchimp-for-woocommerce"}}
This message is in
/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php:2338
Even if I deactivate the plugin(!), any WP-CLI results in the above message. Only removing the plugin completely makes WP-CLI work again.
As a temp work around I can use (this works!):
wp user list --skip-plugins=mailchimp-for-woocommerce
The above works, but I need to resolve this in the longer term. Has anyone else got this issue? Is this a bug in mailchimp-for-woocommerce?
Any help appreciated! Thank you.
- You must be logged in to reply to this topic.