Command Line Plugin Activation Fails
-
Hi folks,
Wasn’t sure what the best forum for my question was, so I’ve arrived at this one as my best guess.
I have developed a system for promoting my wordpress sites from dev/staging to production. This all works fine. However, following a 3rd party plugin update I started seeing an issue, which is this: the updated plugin throws a Class Not Found error when being activated from the command line (wp plugin activate <some-plugin>). The missing class is specific to the plugin, not some core class.
Ok so the plugin is at fault, that’s understood. But what I don’t understand is that the plugin activates just fine from the dashboard. I thought the command line was a shell on top of core code just like the dashboard is. Shouldn’t both result in the same outcome be it success or fail?
If not, what could be causing the difference in results?
Thanks in advance
Stevep.s. I’ve reported the issue to the plugin developer. But I’d like to know if there’s also some issue with WP to cause one method to successfully activate a plugin and another not.
- The topic ‘Command Line Plugin Activation Fails’ is closed to new replies.