如何通过FTP手动更新WordPress插件

Do you want to learn how to manually update WordPress plugins via FTP? Sometimes the 1-click WordPress plugin update fails which can break your website. The only way to fix that is by manually updating the plugin. In this article, we will show you how to manually update WordPress plugins via FTP without breaking your website.

您是否想学习如何通过FTP手动更新WordPress插件? 有时,一键式WordPress插件更新失败,这可能会破坏您的网站。 解决此问题的唯一方法是手动更新插件。 在本文中,我们将向您展示如何通过FTP手动更新WordPress插件而不会破坏您的网站。

Manually updating WordPress plugins via FTP
为什么要手动更新WordPress插件? (Why Update WordPress Plugins Manually?)

WordPress comes with a built-in system to manage core, theme, and plugin updates. All you need to do is click on the update link, and it will update your plugins. For more details, see our guide on how to properly update WordPress plugins.

WordPress带有一个内置系统来管理核心,主题和插件更新。 您所需要做的就是单击更新链接,它将更新您的插件。 有关更多详细信息,请参阅有关如何正确更新WordPress插件的指南

However sometimes these updates can fail due to incorrect file permissions, incorrect version number, or other server configuration factors.

但是,有时由于文件权限错误,版本号错误或其他服务器配置因素,这些更新可能会失败。

If an update gets interrupted midway, then you will end up with a broken site. You may see briefly unavailable for scheduled maintenance error, syntax error, or internal server error.

如果更新在中途中断,则最终将导致站点损坏。 您可能会短暂看到无法用于计划的维护错误语法错误内部服务器错误

The only way to fix this is by manually updating the WordPress plugin via FTP. By doing so, you will be able to fix those errors and continue using the latest version of the plugin.

解决此问题的唯一方法是通过FTP手动更新WordPress插件。 这样,您将能够修复这些错误并继续使用最新版本的插件。

Let’s take a look at how to manually update WordPress plugins via FTP.

让我们看一下如何通过FTP手动更新WordPress插件。

影片教学 (Video Tutorial)

演示地址

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

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

通过FTP手动更新WordPress插件 (Manually Updating WordPress Plugins via FTP)

First, you will need to download the latest version of the plugin you are trying to update. If it is a free plugin, then you can download it from the WordPress.org plugin page.

首先,您将需要下载要更新的插件的最新版本。 如果它是免费的插件,那么您可以从WordPress.org插件页面下载它。

downloading a free WordPress plugin

If it is a premium plugin, then you can download the latest version from the specific plugin’s website. You will need to login to your account and download the plugin to your computer.

如果它是高级插件,则可以从特定插件的网站下载最新版本。 您将需要登录到您的帐户并将插件下载到您的计算机。

All plugins come in .zip files, so you need to extract them.

所有插件都包含.zip文件,因此您需要解压缩它们。

Unzip plugin file

Next, you’ll need an FTP client. We’ll be using FileZilla in our example, but you can use any FTP client you like.

接下来,您将需要一个FTP客户端 。 在示例中,我们将使用FileZilla,但是您可以使用任何喜欢的FTP客户端。

To connect to your website using FTP, you will need to enter your website name in the hostname with your FTP username and password.

要使用FTP连接到您的网站,您需要在主机名中输入您的网站名称以及您的FTP用户名和密码。

Connecting FTP client to your website

If you don’t know your FTP username or password, then check the email your WordPress hosting company sent you when you signed up. It usually contains your FTP username and password.

如果您不知道FTP用户名或密码,请查看WordPress托管公司在注册时向您发送的电子邮件。 它通常包含您的FTP用户名和密码。

Alternatively, you can also find this information in the cPanel dashboard of your hosting account.

或者,您也可以在托管帐户的cPanel仪表板中找到此信息。

Once you are connected to your website via FTP, you need to go to /wp-content/plugins/ folder.

通过FTP连接到网站后,您需要转到/wp-content/plugins/文件夹。

You’ll see different folders for all the plugins you have installed on your WordPress site. Right click on the plugin that you want to update and then select ‘Rename’.

您将在WordPress网站上看到所有已安装插件的不同文件夹。 右键单击要更新的插件,然后选择“重命名”。

Rename old plugin folder

Now rename this plugin by simply adding -old to the plugin folder name. For example, wpforms-old.

现在,只需在插件文件夹名称中添加-old即可重命名该插件。 例如,wpforms-old。

Next, you need to download the renamed folder to your computer as a backup. This will allow you to revert back to the old version in case you need it.

接下来,您需要将重命名的文件夹下载到您的计算机作为备份。 这将使您可以在需要时还原到旧版本。

Backup old version of plugin

After downloading the old plugin to your computer, you can delete it from your website.

将旧插件下载到您的计算机后,您可以从网站上删除它。

Delete old version of plugin from your website

We also want to make sure that the plugin is deactivated in WordPress database as well. To do that, you need to simply login to your WordPress admin area and visit the plugins page.

我们还想确保该插件在WordPress数据库中也被停用。 为此,您只需登录到WordPress管理区域并访问插件页面。

You will see an error that the plugin has been deactivated due to an error.

您会看到一个错误,表明由于错误,插件已被停用。

Deactivated

Now that we have removed the old version, it is time to install the latest version of the plugin.

现在我们已经删除了旧版本,是时候安装最新版本的插件了。

Switch to your FTP client and under the ‘Local’ section, locate the new plugin folder on your computer. Now right click and select ‘Upload’ from FTP menu.

切换到FTP客户端,然后在“本地”部分下,找到计算机上的新插件文件夹。 现在,右键单击并从FTP菜单中选择“上传”。

Upload new version of the plugin

Your FTP client will start transferring the plugin folder from your computer to your website.

您的FTP客户端将开始将plugin文件夹从您的计算机传输到您的网站。

Once finished, you can login to your WordPress admin area and go to the Plugins page. You need to find the newly installed plugin and activate it.

完成后,您可以登录到WordPress管理区域并转到“ 插件”页面。 您需要找到新安装的插件并激活它。

Activate the latest version of plugin

You can now check the updated version of the plugin to make sure that everything is working correctly.

现在,您可以检查插件的更新版本,以确保一切正常。

That’s all, you have successfully updated a WordPress plugin via FTP.

就是这样,您已经通过FTP成功更新了WordPress插件。

It is really crucial for WordPress security to always use the latest version of WordPress. It is also equally important to keep your WordPress plugins and theme updated.

始终使用最新版本的WordPress对于WordPress安全至关重要。 保持WordPress插件和主题的更新同样重要。

If a WordPress plugin stops working after the update, then you can rollback the plugin and report the issue to the plugin developer.

如果WordPress插件在更新后停止工作,则可以回滚该插件并将问题报告给插件开发人员。

However, there is no reason to continue using an outdated version. If the issue is not resolved in a timely manner, then you should look for an alternative plugin to do the job.

但是,没有理由继续使用过时的版本。 如果未及时解决问题,则应寻找替代插件来完成此工作。

We hope this article helped you learn how to manually update WordPress plugins via FTP. You may also want to see our list of most common WordPress errors and how to fix them.

我们希望本文能帮助您学习如何通过FTP手动更新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/beginners-guide/how-to-manually-update-wordpress-plugins-via-ftp/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值