WP-CLI: plugin and theme not showing installed items
-
Running
wp plugin listorwp theme listdoes not show any installed plugin/theme. This has been previously working correctly.All other wp-cli commands appear to be working fine.
Running on an AWS EC2 Amazon AMI as the default ec2-user. The web server is Apache 2.4 running under apache:apache. I have added the ec2-user to the apache group and I have run the commands using sudo (
sudo wp plugin list --allow-root)Tried installing a new plugin using
wp plugin install theme-check --activate(and the sudo version). This appears to work and the plugin is listed usingwp plugin listBUT the plugin is deactivated by WordPress and the wp-content/plugin directory does NOT contain the newly installed plugin.I tried deleting and re-installing wp-cli.phar from scratch with no change.
Q1) Is there a log of wp-cli actions/results anywhere?
Q2) Where does wp-cli get it’s info from? (I’ve been parsing github but my PHP coding is not that hot)
Q3) Any thoughts on how to fix this?
Many thanks in advance
Ian$ wp --info PHP binary: /usr/bin/php-5.6 PHP version: 5.6.30 php.ini used: /etc/php.ini WP-CLI root dir: phar://wp-cli.phar WP-CLI vendor dir: phar://wp-cli.phar/vendor WP_CLI phar path: /var/www/html/wordpress WP-CLI packages dir: /home/ec2-user/.wp-cli/packages/ WP-CLI global config: WP-CLI project config: WP-CLI version: 1.2.1$ wp plugin list --debug Debug (bootstrap): Loading packages from: /home/ec2-user/.wp-cli/packages/vendor/autoload.php (0.009s) Debug (bootstrap): No readable global config found (0.156s) Debug (bootstrap): No project config found (0.156s) Debug (bootstrap): ABSPATH defined: /var/www/html/wordpress/ (0.158s) Debug (bootstrap): Begin WordPress load (0.159s) Debug (bootstrap): wp-config.php path: /var/www/html/wordpress/wp-config.php (0.159s) Debug (bootstrap): Loaded WordPress (0.297s) Debug (bootstrap): Running command: plugin list (0.299s) +----------------+----------+--------+------------+ | name | status | update | version | +----------------+----------+--------+------------+ | theme-check | inactive | none | 20160523.1 | | user-switching | inactive | none | 1.0.9 | +----------------+----------+--------+------------+
The topic ‘WP-CLI: plugin and theme not showing installed items’ is closed to new replies.