How To Fix “The Link You Followed Has Expired” In WordPress
Changing the maximum upload file size.
Have you ever seen “The link you followed has expired” message in WordPress?
The message is a little bit difficult to resolve because WordPress does not give many clues about how to fix the file size limit.
What Causes The Link You Have Followed Has Expired Error?
The error usually occurs when you are trying to upload a WordPress theme or a plugin to your website from the WordPress admin area.
Most WordPress hosting companies have a setting which controls the size of files you can upload from inside the WordPress admin area.
They will 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.
Having these restrictions make your website safer and improves the overall performance of your WordPress hosting server.
When 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.
If you are trying to upload a WordPress theme or plugin, then you would see “The link you followed has expired” error.
Not all hosting companies will allow you to make the change to increase the max size.
Siteground will not allow you to edit the post_max_size or the upload_max_filesize.
Fixing ‘The Link You Have Followed Has Expired’ Error When Using LocalHost
If you want to upload a theme or plugin and you get the error, ‘The link you have followed has expired’ then follow these instructions.
The issue is the maximum upload file size is set to 2 MB.
We need to find where the php.ini is located on your hard drive.
The first thing we need to do is open a text edit and create a new info.php file with the name info.php.
Copy the code below and paste it in the new file.
Next copy the info.php file and paste it in your project.
Next run the file and you will see the PHP Version information page.
Find the Loaded Configuration File and that will show you the path to where your php.ini file is located on your hard drive.
Edit the php.ini file and search for both post_max_size and upload_max_filesize.
Change both post_max_size and upload_max_filesize to 128M.
Login to the admin area of WordPress and click on Media >> Add New.
You will notice the Maximum upload file size will now show 128 MB.
When uploading themes and plugins to your WordPress project and you get “The link you followed has expired” message you can easily fix the error by changing a few values in the php.ini file.