admin管理员组文章数量:1295272
Hi I am using a Ubuntu system. I am using a shell script to download wordpress from wget, update config and run it from nginx server.
Now I want to update this shell script so that when we install a fresh copy of WordPress, I get some plugins pre-installed. So I installed wp-cli and ran the command
wp plugin install w3-total-cache --activate --allow-root
This command says the plugin has been activated successfully. But when I go to the site URL in the plugins section, it gives the following error
The plugin w3-total-cache/w3-total-cache.php has been deactivated due to an error: Plugin file does not exist.
This is true for any plugin that I try to install.
When I go to the plugins folder inside wp-content, I can see that plugin files exist. But still I get the error.
How to resolve this. Please help
Hi I am using a Ubuntu system. I am using a shell script to download wordpress from wget, update config and run it from nginx server.
Now I want to update this shell script so that when we install a fresh copy of WordPress, I get some plugins pre-installed. So I installed wp-cli and ran the command
wp plugin install w3-total-cache --activate --allow-root
This command says the plugin has been activated successfully. But when I go to the site URL in the plugins section, it gives the following error
The plugin w3-total-cache/w3-total-cache.php has been deactivated due to an error: Plugin file does not exist.
This is true for any plugin that I try to install.
When I go to the plugins folder inside wp-content, I can see that plugin files exist. But still I get the error.
How to resolve this. Please help
Share Improve this question edited Mar 20, 2017 at 10:31 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked Mar 20, 2017 at 10:29 AniketAniket 1712 bronze badges2 Answers
Reset to default 1Caching plugins usually require some additional manual work in moving some files from the plugin directory to the root of the wp-content
directory and maybe some wp-config.php
changes. It is possible that the plugin fails to initialize due to that.
I've had this exact issue, and I found the very specific issue.
WP-CLI was running in another directory (with another Wordpress installation) which pointed to the same database.
What happens:
- WP-CLI succesfully executes the command on the wrong Wordpress installation
- You then open the correct Wordpress installation, and go to Plugins.
- That installation cannot find the file so it deactivates the plugin.
The issue for me was caused by using a setup script which used the --path= option, and this path was wrong. The setup script fully installed Wordpress in the wrong directory with the same database credentials.
本文标签: wp cliUnable to install plugins from wpcli
版权声明:本文标题:wp cli - Unable to install plugins from wp-cli 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741615776a2388518.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论