wp-cli stops working with wp-html-mail
-
Hello –
I recently discovered that my wp-cli and wc-cli were no longer working on my site. I would run any wp command and it would have zero output at all. If I run wp-cli command with the
--skip-pluginsoption, it works.I checked the tips at https://make.ww.wp.xz.cn/cli/handbook/identify-plugin-theme-conflict/ which give a tip on how to find which plugin causes an issue.
It gives this command:
wp plugin list --field=name --status=active --skip-plugins | xargs -n1 -I % wp --skip-plugins=% plugin get % --field=nameI changed it to this one so I could see what it was doing:
for i in $(wp plugin list --field=name --status=active --skip-plugins); do echo -n "$i: " ; wp --skip-plugins=$i plugin get $i --field=name; echo ""; doneRunning this command basically iterates through all the plugins, and then for each one, attempts to run a basic
wp plugin getcommand while skipping that plugin.When I ran it, two plugins showed up:
wp-html-mail: wp-html-mail wp-html-mail-woocommerce: wp-html-mail-woocommerceand sure enough, if I skip wp-html-mail plugin in my command, commands work:
wp --skip-plugins=wp-html-mail role list +------------------+------------------+ | name | role | +------------------+------------------+ | Administrator | administrator | [snip]I’m running 2.9 of both wp-html-mail and wp-html-mail-woocommerce:
wp --skip-plugins plugin get wp-html-mail +-------------+----------------------------------------------------------------------------------+ | Field | Value | +-------------+----------------------------------------------------------------------------------+ | name | wp-html-mail | | title | WP HTML Mail | | author | Hannes Etzelstorfer | | version | 2.9 | | description | Create your own professional email design for all your outgoing WordPress emails | | status | active | +-------------+----------------------------------------------------------------------------------+wp --skip-plugins plugin get wp-html-mail-woocommerce +-------------+-------------------------------------------------------+ | Field | Value | +-------------+-------------------------------------------------------+ | name | wp-html-mail-woocommerce | | title | WP HTML Mail - WooCommerce | | author | Hannes Etzelstorfer // codemiq | | version | 2.9 | | description | Beautiful responsive mails for your WooCommerce store | | status | active | +-------------+-------------------------------------------------------+This is the most recent version I was emailed about earlier this month.
The topic ‘wp-cli stops working with wp-html-mail’ is closed to new replies.