Simple Guide on How to Deal with Destination Folder Already Exists Error in WordPress

Simple Guide on How to Deal with Destination Folder Already Exists Error in WordPress

When running a WordPress website, you may need to install multiple plugins to achieve different functionalities and the templates for the pretty website design. The installation process is truly simple. You just need to enter your website admin, search for your target from the Plugins tab or the Themes tab, click the Install Now button and activate the option. However, when installing these add-ons, have you ever encountered an error message telling you that the destination folder already exists, so the installation process fails? This time, we’d like to discuss this issue and tell you how to deal with destination folder already exists error in WordPress.

When This Error Happens

In fact, this is not a big issue at all. Generally, it will occur when you are looking to install a plugin or a theme to your WordPress site. The script will extract the ZIP files of your plugins and themes into the folder that is named after the file. If there is a folder that already has the same name, WordPress will abort the installation and showcases the following error message.

Destination Folder Already Exists Error

There are two main situations that can lead to this result.

  • The previous delete attempt of the plugin or theme does not succeed. Thus, there is a same folder left behind.
  • The previous installation attempt is interrupted so as to leave an empty folder.

No matter which situation is, there will be a folder that has the same name as your target theme or plugin. And this will prevent WordPress from finishing the installation and activation process.

How to Fix This Error

The troubleshooting is easy. You just need to remove that useless folder and install your target one more time. In this case, you should use the FTP client or the File Manager that is available from the cPanel control panel. Here, you need to target the /wp-content/plugins/ folder if you get this error when installing a plugin or the /wp-content/themes/ folder if you get this error when installing a template.

Now, you should click into the folder to find the option that has the same name of your target plugin or template that fails to install. And then, you need to remove it.

Delete Plugin Folder

That’s it. You simply need to go back to the WordPress admin to re-install the plugin or theme one more time.