Title: WP CLI bug
Last modified: March 6, 2019

---

# WP CLI bug

 *  Resolved [samwebdev](https://wordpress.org/support/users/samwebdev/)
 * (@samwebdev)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-bug-2/)
 * Hello,
 * Upgraded to latest version, there is a compatibility issue with the CLI:
 * Stack trace:
    #0 /var/www/html/wp-content/plugins/redirection/redirection-admin.
   php(56): Red_Database::apply_to_sites(Object(Closure)) #1 /var/www/html/wp-includes/
   class-wp-hook.php(286): Redirection_Admin::plugin_deactivated(false) #2 /var/
   www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)#
   3 /var/www/html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /var/
   www/html/wp-admin/includes/plugin.php(775): do_action(‘deactivate_redi…’, false)#
   5 phar:///bin/wp-cli.phar/vendor/wp-cli/extension-command/src/Plugin_Command.
   php(383): deactivate_plugins(‘redirection/red…’, false, NULL) #6 [internal function]:
   Plugin_Command->deactivate(Array, Array) #7 phar:///bin/wp-cli.phar/vendor/wp-
   cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(93): call_user_func(Array,
   Array, Array) #8 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\
   Dispatcher\{ in /var/www/html/wp-content/plugins/redirection/database/database.
   php on line 86
 * CLI works fine when the plugin is deactivated.
 * Regards

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-bug-2/#post-11291044)
 * Fixed, as described here: [https://wordpress.org/support/topic/cli-database-commands-assume-multisite/](https://wordpress.org/support/topic/cli-database-commands-assume-multisite/)
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-bug-2/#post-11295404)
 * Beta release with fix: [https://github.com/johngodley/redirection/releases/tag/4.1-beta-1](https://github.com/johngodley/redirection/releases/tag/4.1-beta-1)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WP CLI bug’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-bug-2/#post-11295404)
 * Status: resolved