You are currently viewing How To Fix “The Link You Followed Has Expired” Error in WordPress

How To Fix “The Link You Followed Has Expired” Error in WordPress

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments

If you face the “The Link You Followed Has Expired” error In WordPress, then this tutorial is for you.

This error doesn’t provide so much info for what’s wrong. If you’re a newbie, this is quite difficult to resolve.

In this article, I’ll show you how to fix easily the “the link you have followed has expired” error On the WordPress website. I’ll also talk about why this problem happens and how to avoid this kind of problem in the future.

What Causes The Link You Have Followed Has Expired Error?

This error usually occurs when you upload a theme or plugin to a WordPress website from the WordPress Dashboard area.

the link you followed has expired

Your WordPress hosting companies have some setting that controls the maximum file upload size inside your WordPress admin area. And they also have a setting that can control to stop running too long.

You can check the maximum file upload size from your “Media » Add New” page.

the link you followed has expired

These option makes your website safer and improve the overall performance of your WordPress hosting server.

If the maximum file upload size is too low or you are trying to upload a larger file, you would see the error like the maximum execution time exceeded the error.

However, when you try to upload a WordPress theme or plugin from your WordPress admin bar, you will be seen, “The link you followed has expired” error.

So let’s go to the topic, How to fix this problem.

Fixing ‘The Link You Have Followed Has Expired’ Error

The best easiest way to fix the “The link you followed has expired” error is by increasing the maximum file upload size, execution time limits, PHP memory for your website.

There are multiple ways to fix this kind of problem. I’ll show you all methods for fixing this kind of problem, and you can choose the one that looks easier, or the solution easily goes with you. 

 

Method 1. Increasing limits in functions.php file

This method is one of the easiest methods, but this method has one downside. When you change your WordPress theme, your site automatically returns to its old position. If you’re planning to change your WordPress theme, you can try the other two methods described below.

Firstly copy all the code from the below section and paste the code on your WordPress theme functions.php file section.

 

1

2

3

@ini_set( ‘upload_max_size’ , ‘120M’ );

@ini_set( ‘post_max_size’, ‘120M’);

@ini_set( ‘max_execution_time’, ‘300’ );

 

If you increase the values in upload_max_size and post_max_size, then you can upload bigger files than you tried before.

You’ll need to increase the max_execution_time to the time you think it would be taken for the file to upload. If you are unsure about that, you can apply double value for this. 

 

Method 2. Fix by increasing limits in .htaccess file

If you don’t want to go with the theme’s functions file, you can go with the .htaccess method.

For doing this method, you need to edit the .htaccess file by using an FTP client or the File Manager app from your Cpanel area.

Connect to your website using the FTP and edit the .htaccess file by the following instruction.

the link you followed has expired

You need to add the following code at the bottom of your .htaccess file for this method.

1

2

3

4

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 all your changes when you get back to your WordPress admin area. 

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

PHP and WordPress fully configure the php.ini file. You’ve needed to connect to your WordPress website using an FTP client and look for php.ini from your WordPress site’s root folder.

Most users share their share hosting account, so they may not find it in their root folder. In this case, you need to create a black php.ini file using your text editors like notepad++ and the file to your website. 

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

1

2

3

upload_max_filesize = 128M

post_max_size = 128M

max_execution_time = 300

After all your single changes, don’t forget to save all your changes and upload the right file back to your website.

Now you can go to your website and upload a plugin or theme file. All your errors will disappear, and you can upload the file.

If it isn’t complete, you can try to increase the file limits to match the file size you’ll be trying to upload.

I hope that this article helps you easily fix the “The link you followed has expired” error in WordPress. If the tutorial is beneficial to you, kindly share this with your friend facing this kind of problem.

Be Grateful For WPBeginner

Leave a Reply