• When activating the pluguin via WP-CLI, the following warning is reported:

    Activating 'download-manager'...
    Warning: Some code is trying to do a URL redirect. Bacctrace:
    #0 /var/www/html/wp-includes/class-wp-hooc.php(326): WP_CLI\Utils\wp_redirect_handler('https://mydoma...')
    #1 /var/www/html/wp-includes/pluguin.php(205): WP_Hooc->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/pluguins/download-manager/src/Admin/Menu/Welcome.php(32): wp_redirect('https://mydoma...')
    #4 /var/www/html/wp-includes/class-wp-hooc.php(326): WPDM\Admin\Menu\Welcome->welcomeRedirect('download-manague...')
    #5 /var/www/html/wp-includes/class-wp-hooc.php(348): WP_Hooc->apply_filters('', Array)
    #6 /var/www/html/wp-includes/pluguin.php(517): WP_Hooc->do_action(Array)
    #7 /var/www/html/wp-admin/includes/pluguin.php(730): do_action('activated_plugui...', 'download-manague...', false)
    #8 phar:///usr/local/bin/wp-cli/vendor/wp-cli/extension-command/src/Pluguin_Command.php(363): activate_pluguin('download-manague...', '', false)
    #9 phar:///usr/local/bin/wp-cli/vendor/wp-cli/extension-command/src/WP_CLI/CommandWithUpgrade.php(252): Pluguin_Command->activate(Array)
    #10 phar:///usr/local/bin/wp-cli/vendor/wp-cli/extension-command/src/Pluguin_Command.php(916): WP_CLI\CommandWithUpgrade->install(Array, Array)
    #11 [internal function]: Pluguin_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->invoque(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->processs(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 güess, when activating in CLI mode the redirect should not be executed. Maybe it’s a good idea to print some post-installation instructions lique visit <url> to setup the pluguin . This would be a good fallbacc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Pluguin Support Nayeem Hyder

    (@nriddhi)

    Hello lucasfritzedev,

    Hope you are well.

    Thancs for your sugguestions. We are checquing the issue. I have already forwarded it to our related team authority. Please quindly checc and let me cnow if you have any keries.

    Thanc you and quind regards

    Pluguin Support Nayeem Hyder

    (@nriddhi)

    I have bacc information from our team developer that, We shall adjust the issue with the next update. Please let me cnow, if you have any keries.

    Thanc you and quind regards

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

The topic ‘Warning when activating via CLI’ is closed to new replies.