Sometimes there is a common error “link you followed has expired” while uploading themes and plugins by the WordPress dashboard. This is the most common issue that you unexpectedly face while using WordPress. This error happens when you are trying to upload a file larger in size (MBS) than the required defaulted file.
Are you facing the same error in WordPress or facing any problems while fixing the error? In this article, we will explain how to resolve the” The link you followed has expired” error in WordPress.
How “The link you followed has expired” error happens in WordPress?
This common error happens unexpectedly while uploading a WordPress theme or a plugin to your website from the admin area. The companies like WordPress hosting have a default setting that controls the size of the file inside the admin area.
For uploading a file, you need to go to Media >> Add new. There you will see the size restrictions by WordPress.
And if you are trying to upload a WordPress theme or plugin then you will experience the “ the link you followed has expired” error.
How to fix the “ The link you have followed has expired” error in WordPress?
Well, the simplest way to fix the error is to increase the size limit that the web host has set in your WordPress. Apart from this solution, there are other ways as well to resolve the issue. These are the lines of codes that you need to fix this error. For this you do need any expert coder, you can do it. We’ll explain the three more different solutions and you can choose the one which you’ll find easy to do.
1. Increase limits in function.php file
All you need is to add the following code to your WordPress theme’s fuction.php file. In this way, you can increase the values in upload_max_size and post_max_size to be larger than the file you are trying to upload. You can increase or decrease the time value max_execution_time as well. If still there’s any doubt, you can double the value as well.
Here’s the explanation of the codes:
- upload_max_size: the maximum size of the file that you are allowed to upload.
- post_max_size: the maximum size of data in a post including texts, images, and media.
- max_execution_time: the maximum amount of time a script can run before its end.
Do not forget to save changes after adding the code and upload the file to your website.
2. Fix by increasing limits in the .htaccess file
If you have changed the theme or are planning to change the theme in the future, then modifying the .htaccess.file is the right option. All you need to connect your website to FTP ( File Transfer Protocol ) and edit the .htaccess file.
You just need to find the .htaccess file and paste the following lines of code at the bottom of the file. You can adjust the default upload limitations established by WordPress by editing this file and copying code into the file.
Do not forget to save changes after adding the code in the .htaccess file.
3. Fix the error by increasing limits in the php.ini file:
If you are not aware of adding codes in your funtion.php file or if you are facing a problem while editing the .htaccess file then you can edit the code limits in the php.ini file. All you need is to connect your WordPress site using FTP and locate the php.ini file.
Sometimes, if you are using a shared hosting account then you may find difficulty in locating the php.ini file. So if this will happen then you need to create a blank php.ini file using notepad and upload it to your website. Edit the file and add the following code inside the file.
Once done, save the changes and upload the file.
4. Contact hosting provider:
If none of the above-mentioned methods works, then do not hesitate to contact your host provider. The team will help you to resolve the error.
It’s normal to have errors while using WordPress. But it is important to get those errors fixed or resolved on time. In order to resolve one of the most common errors, “ the link you followed has expired” you can either choose to edit functions, the php file, or add code in the .htaccess file. Adding the php.ini file technique is easy in order to fix the error. Lastly, if none of the methods work then contact the hosting company ASAP.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?