Neither ACP or addons can be activated via wp-cli
Got a bizarre situation where I’m installing ACP and the ACF/WooCommerce addons via wp-cli. That all works fine, but it’s impossible to activate them via wp-cli (“wp plugin activate plugins_here”). I just get a warning message stating:
“Could not activate ‘admin-columns-pro’ plugin.” and the same for the other two addons.
What’s annoying is even if I activate the plugins via the wp-admin area they work fine, but if I use “wp plugin list” via the terminal, to get the list of plugins, ACP and the addons are listed as “inactive” which then causes them to be deactivated when updating any other plugins via wp-cli. I’ve checked permissions on the plugins directory & the plugins, completely removed the plugins and reinstalled fresh copies. WP-CLI just completely ignores the actual plugin status. Not entirely sure whether this is ACP-related or an issue with WP-CLI, but it doesn’t happen with any of my other plugins.
This happens in my local development environment, a staging environment and our live sites.
Any thoughts on what could be causing this? Or a solution to fix this?
Thanks.
You must be logged in to reply to this topic.