Skip to content

WP-CLI plugin activation breaks due to redirect #40

Closed

Description

@crazyjaco

When activating all plugins on a site using wp-cli, the process breaks after activating multicollab due to a redirect. The remainder of the plugins do not get activated due to this issue.

Plugin 'xxx' activated. Warning: Some code is trying to do a URL redirect. Backtrace: #0 WP_CLI\Utils\wp_redirect_handler(http://[domain.com]/wp-admin/admin.php?activated=1&page=editorial-comments) called at [/path/to/core/wp-includes/class-wp-hook.php:305]

Activity

  1. macr1408 commented on Nov 19, 2021

    @macr1408

    I can confirm this issue is happening, plugins should not redirect when using WP CLI.

  2. benlk commented on Dec 10, 2021

    @benlk

    This bug breaks a build pipeline that activates a number of plugins on a site. The build script activates plugins in alphabetical order, but because of the redirect, the activation script stalls after multicollab, and as a result half the plugins on the site aren't being activated.

  3. crazyjaco commented on Jan 26, 2022

    @crazyjaco
    Author

    Just noting that this is still an issue. We've had to remove the plugin from our environments due to this problem.

  4. poojabhimani12 commented on Feb 7, 2022

    @poojabhimani12
    Collaborator

    Closing this because it's a report for version 2.0.2. Updating a new version will solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo