Warning when activating via CLI
-
When activating the plugin via WP-CLI, the following warning is reported:
Activating 'download-manager'...
Warning: Some code is trying to do a URL redirect. Backtrace:
#0 /var/www/html/wp-includes/class-wp-hook.php(326): WP_CLI\Utils\wp_redirect_handler('https://mydoma...')
#1 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters('https://mydoma...', Array)
#2 /var/www/html/wp-includes/pluggable.php(1396): apply_filters('wp_redirect', 'https://mydoma...', 302)
#3 /var/www/html/wp-content/plugins/download-manager/src/Admin/Menu/Welcome.php(32): wp_redirect('https://mydoma...')
#4 /var/www/html/wp-includes/class-wp-hook.php(326): WPDM\Admin\Menu\Welcome->welcomeRedirect('download-manage...')
#5 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#6 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /var/www/html/wp-admin/includes/plugin.php(730): do_action('activated_plugi...', 'download-manage...', false)
#8 phar:///usr/local/bin/wp-cli/vendor/wp-cli/extension-command/src/Plugin_Command.php(363): activate_plugin('download-manage...', '', false)
#9 phar:///usr/local/bin/wp-cli/vendor/wp-cli/extension-command/src/WP_CLI/CommandWithUpgrade.php(252): Plugin_Command->activate(Array)
#10 phar:///usr/local/bin/wp-cli/vendor/wp-cli/extension-command/src/Plugin_Command.php(916): WP_CLI\CommandWithUpgrade->install(Array, Array)
#11 [internal function]: Plugin_Command->install(Array, Array)
#12 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#13 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#14 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func(Object(Closure), Array, Array)
#15 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(441): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#16 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(464): WP_CLI\Runner->run_command(Array, Array)
#17 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1295): WP_CLI\Runner->run_command_and_exit()
#18 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#19 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#20 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#21 phar:///usr/local/bin/wp-cli/php/boot-phar.php(20): include('phar:///usr/loc...')
#22 /usr/local/bin/wp-cli(4): include('phar:///usr/loc...')I guess, when activating in CLI mode the redirect should not be executed. Maybe it’s a good idea to print some post-installation instructions like
visit <url> to setup the plugin
. This would be a good fallback.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.