Skip to content

The plugin uninstall wp-cli command generate an error #2653

@zaerl

Description

@zaerl

Prerequisites

  • I have carried out troubleshooting steps and I believe I have found a bug.
  • I have searched for similar bugs in both open and closed issues and cannot find a duplicate.

Describe the bug

The wp-cli uninstall __name__ blueprint step exits with an error.

https://playground.wordpress.net/builder/builder.html#{%22login%22:true,%22landingPage%22:%22/wp-admin/plugins.php%22,%22steps%22:[{%22step%22:%22wp-cli%22,%22command%22:%22wp%20plugin%20uninstall%20hello%20--deactivate%22}]}

Expected behavior

It should deactivate and then delete the plugin.

Actual behavior

It output this error on devtools:

 #!/usr/bin/env php
Ran uninstall procedure for 'hello' plugin. Deletion of plugin files failed

Steps to reproduce

  1. Open the link
  2. Check the error on the devtools

Isolating the problem

  • I have deactivated other plugins and confirmed this bug occurs when only this plugin is active.
  • This bug happens with a default WordPress theme active.
  • I can reproduce this bug consistently using the steps above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions