Are you seeing ‘The link you followed has expired’ error in 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.
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 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.
You can see the file size upload limit by visiting Media » Add New page.
These restrictions make your website safer and improves the overall performance of your WordPress hosting server.
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.
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.
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
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.
Simply 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 increase the values in upload_max_size and post_max_size to be more than the file you are trying to upload.
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.
Method 2. Fix by increasing limits in .htaccess file
If you don’t want to add code to your theme’s functions file, then you can try the .htaccess method.
For this method, you will need to edit the .htaccess file by using an FTP client or the File Manager app in cPanel.
Simply connect to your website using FTP and edit the .htaccess file.
Now, you need to add the following code 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
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
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.
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.
Now edit the php.ini file and add the following code inside it.
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.
Method 4. Fix by increasing limits in CPanel
Keep following Garudeya.com, for the latest notifications.