Dec 02, 2025
Leonardus N.
4min Read
Download all-in-one WordPress cheat sheet
Error messages may appear in WordPress from time to time, whether it’s a database connection error or a critical error.
One common WordPress error message is The link you followed has expired. Unfortunately, this error message doesn’t tell you the cause, and the link only takes you back to the previous page.
This article will explain why the The link you followed has expired error message occurs and three ways to fix it.
The The link you followed has expired error often shows up after you upload a theme or plugin that exceeds the file size upload limit. Hosting providers usually have upload size and execution time limits in their PHP settings to improve server performance.
This limitation can hinder you when uploading certain files, themes, or plugins. You can see the current upload limit on your WordPress admin panel via Media → Add New.
Note that The link you followed has expired is not the only error message you may get when uploading large files that exceed the size limit. For example, if you try to upload a media file, you may get the image.jpg exceeds the maximum upload size for this site error banner.
Fixing the The link you followed has expired error message requires increasing the maximum file upload size. Let’s see three ways to do it.
The first method to fix The link you followed has expired is by modifying the functions.php file. This may be the easiest method, as you can edit theme files directly from the WordPress admin area. Follow these steps to do so:

@ini_set( 'upload_max_size' , '120M' ); @ini_set( 'post_max_size', '120M'); @ini_set( 'max_execution_time', '300' );
You can also access the functions.php file using an FTP client or the web hosting file manager. Go to /public_html/wp-content/themes path and open the folder of your currently active theme. Then, open and edit the functions.php file.
Note that this modification only applies to the active theme. If you switch to another WordPress theme, the configurations will revert to the default upload limits.
Important! Any update to the theme will delete modifications made to functions.php. To edit theme files while keeping it up-to-date, consider creating a child theme.
The next method is editing the .htaccess file – a hidden file in your website’s root directory that allows you to include additional configuration. Follow these steps to increase the file upload size limit through 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
The last option is to define the maximum file size in the php.ini file. It is the WordPress PHP configuration file that’s located in the site’s root folder. It allows you to increase PHP memory limit and resources.
Unfortunately, most shared hosting plans don’t have this file in the public_html folder. In some cases, it’s available, but the hosting provider doesn’t let you edit the file. To alleviate this, create a new php.ini file using a plain text editor and upload it to your hosting account.
In the following steps, we will use Hostinger’s hPanel as an example. However, the steps should be similar for other hosting control panels.
upload_max_filesize = 128M post_max_size = 128M max_execution_time = 300
Make sure your WordPress site is running the latest PHP version to prevent compatibility issues. Check out our guide on changing the PHP version.

The The link you followed has expired WordPress error message is usually triggered by uploading a theme or plugin that exceeds the maximum file size limit. It is one of several errors that are caused by the file size upload limit.
These limits are usually set by WordPress hosting companies. Fortunately, you can easily override or change the configuration using one of the following methods:
If you are unsure about modifying these files, create backups first. So if anything goes wrong when you debug WordPress, use the backup files to revert to the website’s previous configuration.