Skip to content

Manually installing a deleted plugin fails #3958

Description

@jonathanbossenger

Quick summary

Sometimes, during plugin development, a developer might want to deactivate and delete a plugin and then manually install it using a zip via the Upload Plugin screen.

If a plugin is deleted through the Plugins interface, and then an attempt is made to manually reinstall the plugin, the error "The destination directory already exists and could not be removed." appears. The only current way to work around this is to restart the Studio site.

Steps to reproduce

  1. Navigate to the wp-admin of a Studio site
  2. Manually upload a plugin zip via Plugins -> Add New -> Upload Plugin
  3. Delete the plugin via the Plugins list page
  4. Attempt to manually upload the plugin again

What you expected to happen

The plugin should upload successfully

What actually happened

The "The destination directory already exists and could not be removed" error appears.

Impact

One

Available workarounds?

No and the app is unusable

Platform

No response

Logs or notes

I assume this is related to how the filesystem is mounted when the Studio site is started.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions