Want to install a theme or plugin and see an error that says: “Destination folder already exists”? This error usually occurs during the installation of a theme or a plugin which prevents you from finishing the installation process. In this post, I will show you how to fix this error in WordPress.
What´s the cause for the “Destination folder already exists” error in WordPress?
This error occurs when you are trying to install a WordPress theme or plugin by uploading it into WordPress. WordPress extracts your plugin or theme’s zip file into a folder named after the theme or plugin itself.
If a folder with the same name already exists on your server, then WordPress stops the installation with the following or similar error message:
Destination folder already exists. /home/user/example.com/wp-content/plugins/wpforms/
Plugin install failed.
The first thing that you should do is visit your themes or plugins page to see if you have already installed the theme or plugin on your WordPress site.
If it isn’t already installed, then you should check for two things:
1. A previous attempt to delete the plugin or theme didn’t work, and it left the plugin or theme folder on the server.
2. A previous installation attempt was interrupted and left an empty destination folder.
In both cases, there is a folder with the same name as the theme or plugin you are trying to install. This folder is stopping WordPress from completing the installation.
That being said, let’s take a look at how to easily solve destination folder already exists error in WordPress.
Let´s fix the “Destination folder already exists” error in WordPress
First you will need to connect to your WordPress site using an FTP client or use the FTP file manager of your hosting company.
If you are connected, you need to go to the …/wp-content/plugins/ or …/wp-content/themes/ folder.
Then, look for the folder named after the plugin or theme that you were trying to install and delete it from the server.
You can now go back to your WordPress admin area (some call it the dashboard) and retry the installation of the plugin or theme.
You should be able to install your WordPress plugin or theme without any error.