How to reinstall broken WordPress plugin using wp-cli

If you cannot execute wp-cli command due to the error generated by one of your plugins

Command:

wp plugin status

Output:

Warning: include_once(/home/username/public_html/subdomains/domain.com/wp-content/plugins/woocommerce/includes/libraries/wp-async-request.php): failed to open stream: No such file or directory in /home/username/public_html/subdomains/domain.com/wp-content/plugins/woocommerce-abandoned-cart/includes/background-processes/wcal-async-request.php on line 3

 

Just use –skip-plugins parameter along with –force

As result you will get:

wp plugin install woocommerce --skip-plugins --force

 

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *