wordpress修复插件_如何修复WordPress中的“您关注的链接已过期”错误

wordpress修复插件

Are you seeing ‘The link you followed has expired’ error in WordPress?

您是否在WordPress中看到“您关注的链接已过期”错误?

This error does not give much clues about what’s actually wrong, which is why beginners find it a bit difficult to resolve.

该错误并不能提供有关实际错误的太多线索,这就是为什么初学者觉得很难解决。

In this article, we will show you how to easily fix ‘the link you have followed has expired’ error in WordPress. We will also talk about what causes this error and how to avoid it in the future.

在本文中,我们将向您展示如何轻松修复WordPress中的“您关注的链接已过期”错误。 我们还将讨论导致此错误的原因以及以后如何避免该错误。

wordpress修复插件_如何修复WordPress中的“您关注的链接已过期”错误_第1张图片
是什么原因导致您关注的链接已过期错误? (What Causes The Link You Have Followed Has Expired Error?)

This error usually occurs when you are trying to upload a WordPress theme or a plugin to your website from the WordPress admin area.

当您尝试从WordPress管理区域将WordPress主题或插件上传到您的网站时,通常会发生此错误。

wordpress修复插件_如何修复WordPress中的“您关注的链接已过期”错误_第2张图片

WordPress hosting companies have a setting which controls the size of files you can upload from inside the WordPress admin area. They also have a setting which stops scripts from running too long.

WordPress托管公司的设置可控制您可以从WordPress管理区域内上传的文件的大小。 它们还具有阻止脚本运行太长时间的设置。

You can see the file size upload limit by visiting Media » Add New page.

您可以通过访问媒体»添加新页面来查看文件大小上传限制。

wordpress修复插件_如何修复WordPress中的“您关注的链接已过期”错误_第3张图片

These restrictions make your website safer and improves the overall performance of your WordPress hosting server.

这些限制使您的网站更安全,并改善了 WordPress托管服务器的整体性能 。

If these settings are too low, or you are trying to upload a larger file, then you would see errors like memory exhausted error or maximum execution time exceeded error.

如果这些设置太低,或者您尝试上载更大的文件,则会看到诸如内存耗尽错误或最大执行时间超出错误之类的错误 。

However, if you are trying to upload a WordPress theme or plugin, then you would see ‘The link you followed has expired’ error.

但是,如果您尝试上传WordPress主题或插件,则会看到“您遵循的链接已过期”错误。

That being said, let’s take a look at how to easily fix this problem.

话虽如此,让我们看一下如何轻松解决此问题。

修复“您关注的链接已过期”错误 (Fixing ‘The Link You Have Followed Has Expired’ Error)

The quickest way to fix ‘The link you followed has expired’ error is by increasing the file upload size, PHP memory, and execution time limits for your website.

修复“您关注的链接已过期”错误的最快方法是增加文件的上传大小,PHP内存以及网站的执行时间限制。

There are multiple ways to do that. We will show you all of them, and you can choose the one that looks easier or the one that works on your hosting environment.

有多种方法可以做到这一点。 我们将向您展示所有这些工具,您可以选择一种看起来更轻松的工具,也可以选择一种在您的托管环境中工作的工具。

Method 1. Increasing limits in functions.php file

方法1。增加functions.php文件中的限制

This method is easier, but it has a downside. Your site will return back to the old limits if you change WordPress theme. If you are planning on changing your theme, then try one of the other two methods described below.

这种方法比较容易,但是有一个缺点。 如果您更改WordPress主题,您的网站将恢复到以前的限制。 如果您打算更改主题,请尝试下面介绍的其他两种方法之一。

Simply add the following code to your WordPress theme’s functions.php file.

只需将以下代码添加到WordPress主题的functions.php文件中。


@ini_set( 'upload_max_size' , '120M' );
@ini_set( 'post_max_size', '120M');
@ini_set( 'max_execution_time', '300' );

You can increase the values in upload_max_size and post_max_size to be more than the file you are trying to upload.

您可以增加upload_max_size和post_max_size中的值,使其大于您尝试上传的文件。

You will also need to increase the max_execution_time to the time you think it would take for the file to upload. If you are unsure, then you can try doubling this value.

您还需要将max_execution_time增加到您认为文件上传所需的时间。 如果不确定,则可以尝试将该值加倍。

Method 2. Fix by increasing limits in .htaccess file

方法2。通过增加.htaccess文件中的限制进行修复

If you don’t want to add code to your theme’s functions file, then you can try the .htaccess method.

如果您不想将代码添加到主题的功能文件中,则可以尝试.htaccess方法。

For this method, you will need to edit the .htaccess file by using an FTP client or the File Manager app in cPanel.

对于此方法,您将需要使用FTP客户端或cPanel中的文件管理器应用程序来编辑.htaccess文件 。

Simply connect to your website using FTP and edit the .htaccess file.

只需使用FTP连接到您的网站并编辑.htaccess文件。

wordpress修复插件_如何修复WordPress中的“您关注的链接已过期”错误_第4张图片

Now, you need to add the following code at the bottom of your .htaccess file.

现在,您需要在.htaccess文件的底部添加以下代码。


php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 300
php_value max_input_time 300

Don’t forget to save your changes and upload the file back to your website.

不要忘记保存您的更改并将文件上传回您的网站。

Method 3. Fix by increasing limits in php.ini file

方法3.通过增加php.ini文件中的限制进行修复

The php.ini file is a configuration file used by PHP and WordPress. You’ need to connect to your WordPress site using an FTP client and look for php.ini file in your site’s root folder.

php.ini文件是PHP和WordPress使用的配置文件。 您需要使用FTP客户端连接到WordPress网站,并在网站的根文件夹中查找php.ini文件。

Most users are on a shared hosting account, so they may not find it in their site’s root folder. In that case, you need to create a blank php.ini file using a plain text editor like Notepad and upload it to your website.

大多数用户使用共享主机帐户,因此他们可能无法在其站点的根文件夹中找到该帐户。 在这种情况下,您需要使用纯文本编辑器(如记事本)创建一个空白的php.ini文件,并将其上传到您的网站。

Now edit the php.ini file and add the following code inside it.

现在编辑php.ini文件,并在其中添加以下代码。


upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300

Don’t forget to save your changes and upload the file back to your website.

不要忘记保存您的更改并将文件上传回您的网站。

You can now visit your website and try to upload the theme or plugin file. The error would disappear, and you should be able to upload the file.

现在,您可以访问您的网站并尝试上传主题或插件文件。 该错误将消失,您应该可以上传文件。

If it doesn’t, then try to increase file limits to match the file size you are trying to upload.

如果不是,请尝试增加文件限制以匹配您要上传的文件大小。

We hope this article helped you easily fix ‘The link you followed has expired’ error in WordPress. You may also want to bookmark our guide on how to fix the most common WordPress errors. It will help you save a lot of time by quickly finding a fix for WordPress issues.

我们希望本文能帮助您轻松修复WordPress中的“您关注的链接已过期”错误。 您可能还希望将我们的指南加入书签,以解决最常见的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视频教程。 您也可以在Twitter和Facebook上找到我们。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-link-you-followed-has-expired-error-in-wordpress/

wordpress修复插件

你可能感兴趣的:(python,java,php,linux,wordpress)