如何修复WordPress中的目标文件夹已存在错误

Are you seeing ‘Destination folder already exists’ error in WordPress? This error usually occurs during the installation of a theme or a plugin which prevents you from finishing the installation process. In this article, we will show you how to fix destination folder already exists error in WordPress.

您是否在WordPress中看到“目标文件夹已存在”错误? 在主题或插件的安装过程中通常会发生此错误,这会阻止您完成安装过程。 在本文中,我们将向您展示如何修复WordPress中目标文件夹已存在的错误。

 How to Fix Destination Folder Already Exists Error in WordPress
影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

是什么导致WordPress中的目标文件夹已存在错误? (What Causes Destination Folder Already Exists Error in WordPress?)

This error occurs when you are trying to install a WordPress theme or plugin. WordPress extracts your plugin or theme’s zip file into a folder named after the file itself.

当您尝试安装WordPress主题插件时,会发生此错误。 WordPress将您的插件或主题的zip文件提取到以该文件本身命名的文件夹中。

If a folder with the same name already exists, then WordPress aborts the installation with the following error message:

如果已经存在一个具有相同名称的文件夹,则WordPress将终止安装并显示以下错误消息:

Destination folder already exists. /home/user/example.com/wp-content/plugins/wpforms/

目标文件夹已存在。 /home/user/example.com/wp-content/plugins/wpforms/

Plugin install failed.

插件安装失败。

Destination folder already exists error

The first thing that you should do is visit your themes or plugins page to see if you have it already installed on your site.

您应该做的第一件事是访问主题或插件页面,以查看您是否已在网站上安装了它。

If it isn’t already installed, then this could mean two things:

如果尚未安装,则可能意味着两件事:

1. A previous attempt to delete the plugin or theme didn’t succeed, and it left the plugin / theme folder behind.

1.先前删除插件或主题的尝试未成功,并且将plugin / theme文件夹留在了后面。

2. A previous installation attempt was interrupted and left an empty destination folder.

2.先前的安装尝试被中断,并留下了一个空的目标文件夹。

In either case, 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.

无论哪种情况,都有一个与您要安装的主题或插件同名的文件夹。 此文件夹阻止WordPress完成安装。

That being said, let’s take a look at how to easily solve destination folder already exists error in WordPress.

话虽如此,让我们看一下如何轻松解决WordPress中目标文件夹已存在的错误。

修复WordPress中的目标文件夹已存在错误 (Fixing Destination Folder Already Exists Error in WordPress)

First you will need to connect to your WordPress site using an FTP client or cPanel File Manager.

首先,您需要使用FTP客户端或cPanel文件管理器连接到WordPress网站。

Once connected, you need to go to the /wp-content/plugins/ or /wp-content/themes/ folder (depending on what you were trying to install).

连接后,您需要转到/ wp-content / plugins /或/ wp-content / themes /文件夹(取决于要安装的内容)。

Now, look for the folder named after the plugin or theme that you were trying to install and then delete it.

现在,查找以您尝试安装的插件或主题命名的文件夹,然后将其删除。

Delete folder

You can now go back to your WordPress admin area and retry installing the plugin or theme like you would normally do.

现在,您可以返回WordPress管理区域,然后像通常一样重试安装插件或主题。

You should be able to install your WordPress plugin or theme without any error.

您应该能够安装WordPress插件或主题,而不会出现任何错误。

We hope this article helped you learn how to easily fix destination folder already exists error in WordPress. You may also want to see our ultimate list of the most common WordPress errors and how to fix them.

我们希望本文能帮助您学习如何轻松修复WordPress中目标文件夹已存在的错误。 您可能还想查看我们最常见的WordPress错误的最终列表以及如何修复它们。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-fix-destination-folder-already-exists-error-in-wordpress/

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值