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

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

There are certain errors that give us the precise problem. However, there are some that just give us the error and we are bound to solve it ourselves. In WordPress, there are certain errors that are not easy to solve. Since they provide no details on what actually happened. The Link You Followed Has Expired is another error on WP that beginners find too difficult to solve. Since this error doesn’t provide any reason or description of what the error is about?

In this article, we’ll show you how you can fix The Link You Followed Has Expired error. Along with that, we’ll also discuss what is the reason behind this error. Without further ado, let’s continue to see the problem and its remedies.

Why ‘The Link You Followed Has Expired’ error appears?

This occurs when you try to upload a media or a theme to your WP using the WP admin area. Since WP hosting sites have a limit to how big a file you can upload on it. Once you cross that limit, you’ll be greeted with such an error. They also have settings that don’t allow the script to run for too long.

This restriction makes your website not only safer but also performance-optimized. Since there won’t be any extra load on your hosting, it will run smoothly. But that is not what everyone wants, people try to customize the hosting as they like. They want to upload larger media files and themes without facing this error.

Now that being said, let’s see how we can fix ‘The Link You Followed Has Expired’ error on WordPress. So even if you don’t want to upload anything big, still you’ll stay safe from such errors.

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

There are multiple ways to solve this. We’ll provide solutions based on which one is the fastest and which will take time. You can solve that by increasing the memory size or increasing the execution time or modify the upload size. All of them will solve this error, but don’t try to follow all of them. If your problem is solved by following one of them, you are good to go.

Number 1: Increasing limits in functions.php file

This is the quickest and easiest method but it has its downside. Once you change your theme, all your settings will be back and thus you’ll have to do it again. But once you know how to do it, you can do it anytime you install a new theme. All you need is to add the following code to your WordPress theme’s functions.php file.

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

You can alter the upload size and execution time as you like. But I think this will be enough for any settings or theme. But still if you feel that your site is taking time to run the script, change the execution time.

Number 2: Fix by increasing limits in .htaccess file

If you are not interested in doing any coding? Then this method is just for you. You can edit the .htaccess file using any FTP client or the File Manager in the cPanel.

Also see: How to Remove Author Name from WordPress Posts

Access the .htaccess file and open it in the editor. Then add these lines at the bottom of your .htaccess file.

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

Save the changes and upload the file back to your website.

Number 3: Fix by increasing limits in php.ini file

This method is kind of the same as you just saw above. However, this time you’ll need to access the php.ini file. Use any FTP client or use the File Manager in your cPanel.

Create a backup of the php.ini file there and open the existing php.ini file.

Add the following code in that file:

upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300

Save the changes and upload the file back to your website.

I can’t see the php.ini file in the root folder?

If you have a shared account? Then you might not see this php.ini file there. Create a black php.ini file using notepad on your PC and upload it there. Then you can add the above code to it and save the changes.

Once this is all done, open your website and try to upload a plugin or a theme there. You’ll see that the error is gone until it appears again. If still not, then double the values in these codes to get rid of the issue.

Leave a comment

Your email address will not be published. Required fields are marked *