If you are a web owner, do you sometimes get the error ‘The link you followed has expired’? Do you feel annoyed when this error occurs while you make edits and settings to your website? Don’t worry about that because we will show you some useful methods to help fix ‘The link you followed has expired’ Error.

Fix The Link You Followed Has Expired Error 1

The question is what caused this error? In fact, WordPress hosting companies all use settings that control the size of files when you upload to the admin area. Additionally, they also have a setting that prevents scripts from running for too long. This will make your website more secure as well as effectively improve the overall performance of your hosting server.

If you want to see the file size upload limit, let’s go to Media -> Add New. Now you can see the maximum upload file size like the following image.

Fix The Link You Followed Has Expired Error 2

Whenever you upload a file that is larger than the limit size, or too small for the size limit, errors like ‘memory exhausted’ or ‘maximum execution time exceeded’ will occur. On the other hand, the error ‘The link you followed has expired’ will appear when you try to upload a plugin or theme.

In order to help you solve this trouble, in the blog today, we will introduce to you 3 ways to fix this error. Let’s get started now.

Increase the size in functions.php file

This is considered a fairly easy and effective method. All you need to do is go to your theme’s functions.php file and add the code below:

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

You are able to change the values in upload_max_size and post_max_size so that they can be larger than the file you want to upload. Moreover, max_execution_time should be increased to the time you consider that the uploaded file will be completed.

However, there is a caveat when using this method. Whenever you change the WordPress theme, any change in file size will revert back to the old limit.

Raise the limit in the .htaccess file

Another way for you to increase the size of the uploaded file is by adding code to the .htaccess file. With the method, you have to use an FTP client or the file manager to customize the .htaccess file.

Now, at the bottom of the .htaccess file, let’s add the code below:

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

After adding the code, you need to save all your changes as well as upload this file back to your WordPress site.

Expand the limit with the php.ini file

First of all, you need to connect your website to an FTP client. Then, in the root folder of your site, let’s find the php.ini file.

In case you can’t find this file, maybe you don’t have this file. Thus, you need to create a php.ini file by utilizing a plain text editor, such as Notepad. After that, don’t forget to upload it to your WordPress site.

The next step you need to do is choosing to edit the php.ini file and add the following code:

upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300

Finally, let’s save it and upload this file back to your site.

Now, you can check that the error still appears or not by uploading a new theme or plugin file.

Ending thoughts

In conclusion, with the 3 methods that we provide you today, we hope that you are able to fix ‘The link you followed has expired’ Error smoothly. In addition, don’t forget to share it with your friends if you find it is helpful. Last but not least, if you have an intention to use a new theme for your site, don’t hesitate to visit our Free WordPress Themes.

5/5 - (2 votes)
Lt Digital Team (Content &Amp; Marketing)
Latest posts by LT Digital Team (Content & Marketing) (see all)

Summer Sale Grab 50% Off for everything on today, don't miss it. Coupon code: SUMMER2024 Redeem Now
Summer Sale Grab 50% Off for everything on today, don't miss it. Coupon code: SUMMER2024 Redeem Now