Is WordPress telling you: “The link you followed has expired” ?
Beginners are put off by this error because it does not tell them much about what is actually wrong.
No worries, this is a common error that appears when attempting to upload themes and plugins through WordPress’ dashboard.
The purpose of this article is to show you how to fix the ‘the link you followed has expired’ error in WordPress. I’ll also explain you what causes this error and how to prevent it in the future.
Let’s get started!
When you go to the WordPress dashboard and click ” Media “, then “Add New”, you’ll find there’s a limit to the upload size.
Depending on the web-hosting plan you use, you’ll get some types of prefixed maximum upload file sizes.
Some WordPress managed hosting providers limit the upload size to over 100mb, while shared hosting plans may limit the size to 25mb or even less.
These limits keep you from uploading heavy themes and plugins and might cause the “Link You Followed Has Expired” Error
As indicated above, WordPress’ upload size limit is typically set on the server, so unfortunately you can’t change the setting from WordPress itself.
The limit exists for security and efficiency reasons.
This prevents users from uploading huge videos and overloading your servers.
The fastest way to fix the ‘The link you followed has expired’ error is by increasing your website’s file upload and PHP memory limits.
There are many ways of doing that. I’ll go over all of them, so you can choose the one that suits your hosting environment the best.
This method is simpler, but there is one negative side effect. If you change your theme, your website will return back to the limits it had before.
Consider using one of the other two methods listed below if you plan on changing your theme.
Include 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' );
The upload/post/max_size parameters should be increased to match the file you are trying to upload.
Increase the file’s max_execution_time to the amount of time you think the upload will take.
Feel free to double this value if uncertain.
The .htaccess file in WordPress is used to control how Apache (the server) serves files that are located in the root directory, and subdirectories.
You can edit the .htaccess file to increase PHP memory limits and troubleshoot the “Link You Have Followed Has Expired” Error.
You can edit the .htaccess file by connecting to your website via FTP.
Download it, open it, and add the following code at the end of 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
Make sure you save your changes before uploading the file back to your website.
Locating the .htaccess file is not always straightforward. That’s why i’ll propose you a third way to fix the “Link You Followed Has Expired” Error in WordPress: the php.ini file.
If you want to avoid that entirely, and also not use the functions.php method, there is still another option: the php.ini file.
But be aware that if you have a shared hosting plan, you may not have the php.ini file, or it might not be editable by you.
When that happens, you may want to try creating a blank php.ini file in the root directory of your website.
Put the following lines of code in the php.ini file once you have located/created the file:
upload_max_filesize = 100M post_max_size = 100M max_execution_time = 300
Your error should be resolved after you save the changes and upload back the php.ini file!
Test the performance of your website for free