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 try to upload a WordPress theme or install a new plugin to your admin panel.
This error occurs when the size of the files you upload are more(bigger) than the ones defined by the web host. Keep in your mind that the size always 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 the site much 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. Similarly, 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.)
In fact, 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.
Likewise, 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
- Also, Edit the .htaccess file
- Similarly, 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
- Finally, Save the changes.
Php.ini File is a configuration file used by WordPress and PHP. Likewise, 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,
- Likewise, 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. In fact, the users can select the preferred method as per convenience and need. Also, it is a common error that can be solved in no time with a proper and useful guide!