How to Fix “The link you followed has expired” Error

how-to-fix-the-link-you-followed-has-expired-error
Have you ever faced the error: "The link you followed has expired"? In fact, WordPress users find this problem when they are trying to upload a theme or plugins. So how can we fix this error? In the scope of this article, we are going to find out solutions to fix this error easily. Let's roll the details.

Essentially, there is a setting controlling the size of files uploaded from the WordPress Admin area and a setting to stop scripts from running too long as well. In fact, these limits help to protect your site and improve the overall performance. However, when the file you are uploading exceeds the maximum size or it takes a long time to upload, the problem occurs. There are several ways to fix this problem.

1. Increase limits in functions.php file

By this way, you add the following code to the WordPress Theme's functions.php file:

@ini_set( 'upload_max_size' , '120M' );

@ini_set( 'post_max_size', '120M');

@ini_set( 'max_execution_time', '300' );

In these lines, you can increase the upload_max_size and post_max_size to be larger than the file you are uploading. Also, increasing the max_execution_time is very useful in case it takes a long time to upload the file.

However, the downside is that when you change the theme, these changes will be reset to the old limits.

2. Increase limits in .htaccess file

Another way is to edit the .htaccess file. Connecting to your website via FTP, you can fix the issue by adding the following lines to the bottom of the .htaccess 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 file and check the problem on your site again.

3. Increase limits in php.ini file

To look for this file, you need to connect your site via FTP Client account. In case you are on a shared hosting account, you may not find this file, but you can create a blank php.ini file and upload to the site's root folder.

Then, in this file, add the following code:

upload_max_filesize = 128M

post_max_size = 128M

max_execution_time = 300

4. Contact the hosting provider

In case you want to avoid any other unexpected problem, the simplest way is to contact the hosting provider and wait. They can help you fix this error quickly.

After trying one of the methods above, you can visit your site and upload file again.

We hope that this article is useful for you when you need to fix "The link you followed has expired" error. Share the post so that you can save others from troubles.

Release Jollyany 3.1.0 with new features, updates ...
10 Best Multipurpose Joomla Templates 2019
 

Search Blogs

Latest Blogs

07 August 2019
News
Today, we would like to announce that Jollyany 3.1.2 is already available. This release contains an update on Jollyany framework and some bug-fixes for known issues. Please have a look at all changes that were made in this version. You're better off ...
03 August 2019
Articles
Nowadays, owning a website is an efficient way to not only show the world what services you're providing, but target more potential clients, as well as improve readership. Joomla is a free and professional content management system that offers u...
02 August 2019
News
First of all, our team are so pleased to announce that Fashion Joomla Template 3rd generation has been released as a part of Jollyany. Fashion or Fashion Semona is a template deliberately designed for fashion model agencies. It's a clean, modern...
31 July 2019
Articles
WordPress is truly a massive resource where users can find anything they need to build up an attractive website. In the previous article, we recommended a list of powerful page builder plugins which help users facilitate the website building p...
30 July 2019
News
Hi guys, We're so happy to announce that Jollyany 3.1.0 is already available. This new release comes with a lot of improvements, latest updates, and new awesome features added. Especially, there is another brand-new topic that officially joins Jollya...