Do you want to Fix “The Link You Followed Has Expired” Error in your WordPress Website? It is one of the common WordPress fallacy that users face.
What Causes “The Link You Followed Has Expired” Error?
The error usually appears on the site when you upload a WordPress theme or install a new plugin from the admin panel.
It occurs when the size of the files you are trying to upload is more(bigger) than defined by the web host. The size needs to be less than defined.
You can view the maximum upload size of the file from the Media>>Add New Page.
Usually, web hosts fix upload size in order to improve the performance of the site. It also makes a site safer and convenient. Now, let us learn how we can solve this error.
Fix “The Link You Followed Has Expired” Error in WordPress
Like the majority of WordPress errors, it is easy and straightforward to fix. There are numbers of methods that you can use. Let’s have a look at the methods.
The functions.php file is one of the most edited files in WordPress. It is important to note that the file is tied to your current theme and the upload size will go back to the default if you change the theme. One of the ways to fix the error is to increase the max upload size in the file. To do so,
- Open your functions.php file.
- Copy and Paste the code to your file.
@ini_set( ‘upload_max_size’ , ‘120M’ );
@ini_set( ‘post_max_size’, ‘120M’);
@ini_set( ‘max_execution_time’, ‘300’ );
(Remember to change the size as per your preference.)
If you keep on changing the theme of your site quite often, adjusting with the .htaccess file is the best option. Also, if you don’t want to add code to your theme’s function file, this is suitable for you.
In this method, you need to edit the .htaccess file of your site by using the FTP client or File Manager app in cPanel.
- Connect to the site using FTP
- Edit the .htaccess file
- Add the following code at the bottom of the 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.
Php.ini File is a configuration file used by WordPress and PHP. If both the above-mentioned methods are not favourable for you, you can use this method.
Some hosting servers automatically create a php.ini file into your server to fix the issue. However, if not, you need to create a local php.ini file using a plain editor like Notepad and upload it in the server. Now,
- Edit the php.ini file and upload the following code:
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300
- Save the Changes.
Using any of these methods can help you fix “The Link You Followed Has Expired” error in the WordPress website. Users can select the preferred method as per convenience and need. It is a common error that can be solved in no time with a proper and useful guide!