wp-cli Warning: Some code is trying to do a URL redirect. Backtrace
-
$ wp plugin activate translatepress-multilingual
Warning: Some code is trying to do a URL redirect. Backtrace: 0 WP_CLI\Utils\wp_redirect_handler(/wp-admin/options-general.php?page=translate-press) called at [/wp-includes/class-wp-hook.php:310] 1 WP_Hook->apply_filters(/wp-admin/options-general.php?page=translate-press, Array ([0] => /wp-admin/options-general.php?page=translate-press,[1] => 302)) called at [/wp-includes/plugin.php:205] 2 apply_filters(wp_redirect, /wp-admin/options-general.php?page=translate-press, 302) called at [/wp-includes/pluggable.php:1377] 3 wp_redirect(/wp-admin/options-general.php?page=translate-press, 302, WordPress) called at [/wp-includes/pluggable.php:1524] 4 wp_safe_redirect(/wp-admin/options-general.php?page=translate-press) called at [/wp-content/plugins/translatepress-multilingual/index.php:72] 5 trp_plugin_activation_redirect(translatepress-multilingual/index.php) called at [/wp-includes/class-wp-hook.php:310] 6 WP_Hook->apply_filters(, Array ([0] => translatepress-multilingual/index.php,[1] => )) called at [/wp-includes/class-wp-hook.php:332] 7 WP_Hook->do_action(Array ([0] => translatepress-multilingual/index.php,[1] => )) called at [/wp-includes/plugin.php:517] 8 do_action(activated_plugin, translatepress-multilingual/index.php, ) called at [/wp-admin/includes/plugin.php:718] 9 activate_plugin(translatepress-multilingual/index.php, , ) called at [phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php:347] 10 Plugin_Command->activate(Array ([0] => translatepress-multilingual), Array ()) 11 call_user_func(Array ([0] => Plugin_Command Object ([item_type] => plugin,[upgrade_refresh] => wp_update_plugins,[upgrade_transient] => update_plugins,[obj_fields] => Array ([0] => name,[1] => status,[2] => update,[3] => version),[fetcher] => WP_CLI\Fetchers\Plugin Object ([msg] => The '%s' plugin could not be found.),[*chained_command] => ,[WP_CLI\CommandWithUpgrademap] => Array ([short] => Array ([inactive] => I,[active] => A,[active-network] => N,[must-use] => M,[parent] => P,[dropin] => D),[long] => Array ([inactive] => Inactive,[active] => Active,[active-network] => Network Active,[must-use] => Must Use,[parent] => Parent,[dropin] => Drop-In))),[1] => activate), Array ([0] => translatepress-multilingual), Array ()) called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php:100] 12 WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}(Array ([0] => translatepress-multilingual), Array ()) 13 call_user_func(Closure Object (), Array ([0] => translatepress-multilingual), Array ()) called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php:491] 14 WP_CLI\Dispatcher\Subcommand->invoke(Array ([0] => translatepress-multilingual), Array (), Array ()) called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:419] 15 WP_CLI\Runner->run_command(Array ([0] => plugin,[1] => activate,[2] => translatepress-multilingual), Array ()) called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:442] 16 WP_CLI\Runner->run_command_and_exit() called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:1256] 17 WP_CLI\Runner->start() called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php:28] 18 WP_CLI\Bootstrap\LaunchRunner->process(WP_CLI\Bootstrap\BootstrapState Object ([WP_CLI\Bootstrap\BootstrapStatestate] => Array ([context_manager] => WP_CLI\ContextManager Object ([WP_CLI\ContextManagercontexts] => Array ([cli] => WP_CLI\Context\Cli Object (),[admin] => WP_CLI\Context\Admin Object (),[frontend] => WP_CLI\Context\Frontend Object (),[auto] => WP_CLI\Context\Auto Object ([WP_CLI\Context\Autocontext_manager] => WP_CLI\ContextManager Object ( RECURSION)),[WP_CLI\ContextManagercurrent_context] => cli)))) called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php:78] 19 WP_CLI\bootstrap() called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php:32] 20 include(phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php) called at [phar:///usr/local/bin/wp/php/boot-phar.php:11] 21 include(phar:///usr/local/bin/wp/php/boot-phar.php) called at [/usr/local/bin/wp:4]Irrelevant information removed. The backtrace leaves the administrator in doubt if the plugin was properly activated also because we are now missing the usual activation confirmation message Plugin ‘translatepress-multilingual’ activated
It also breaks activation of all plugins that come after translatepress-multilingual in:
$ wp plugin activate --all
As work around it needs to be executed another time or:
$ wp plugin activate translatepress-multilingual 2> /dev/null $ wp plugin activate --all
B.t.w. this was experienced with latest wp and wp-cli with only the default year theme, no other plugins active.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wp-cli Warning: Some code is trying to do a URL redirect. Backtrace’ is closed to new replies.