# "The Link You Followed Has Expired" in WordPress: How to Fix It

> Source: https://mykavo.app/blog/the-link-you-followed-has-expired  
> Author: Dakshesh  
> Published: 2026-11-15  
> Updated: 2026-11-14  
> Publisher: MyKavo (https://mykavo.app)  

## Summary

"The link you followed has expired" usually appears when you upload a theme, plugin or large file that is bigger than your server's upload_max_filesize or post_max_size, or takes longer than max_execution_time. Raise those PHP limits, or upload the file over SFTP instead.

## Key takeaways

- The message usually means the upload was larger than upload_max_filesize or post_max_size, or took too long.
- Check your limit under Media > Add New or Tools > Site Health > Info > Server.
- Raise the PHP limits in your hosting panel, or in php.ini or .user.ini; .htaccess works only on Apache with mod_php.
- You can skip the browser upload: put the theme or plugin folder in wp-content over SFTP and activate it.
- Check your key pages after installing a theme or plugin, because new code can quietly break layouts and scripts.

You try to upload a new theme, a plugin or a large image in WordPress, and instead of a success message you get a plain page that says: **"The link you followed has expired. Please try again."**

The message is confusing because nothing has expired. In almost every case, the file you uploaded was larger than your server allows, or the upload took too long. This guide explains why it happens and three ways to fix it.

## Why WordPress says the link expired

WordPress protects forms with a security token called a nonce. When an upload is bigger than PHP accepts, PHP throws away the whole form, including that token. WordPress then sees a request with no valid token and shows the generic "link expired" message.

So the real cause is one of these PHP limits:

- **upload_max_filesize**: the largest single file PHP accepts.
- **post_max_size**: the largest total form submission. It must be at least as large as upload_max_filesize.
- **max_execution_time**: how long a script may run. Slow uploads and theme installs can exceed it.

A premium theme zip of 20 to 60 MB on a host with a 2 MB or 8 MB limit is the classic case.

Less often, the message really is about an expired token: you left a wp-admin page open for many hours and then submitted it. Reloading the page and trying again fixes that.

## Check your current upload limit

Go to **Media > Add New**. Under the upload box, WordPress shows "Maximum upload file size". You can also see upload_max_filesize, post_max_size and max_execution_time in **Tools > Site Health > Info > Server**. Our [Site Health guide](https://mykavo.app/blog/wordpress-site-health) explains that screen.

If the file you are uploading is bigger than the maximum shown, that is your problem.

## Fix 1: Raise the PHP limits in your hosting panel

This is the cleanest fix. Most hosts have a PHP settings screen:

- In cPanel, open **MultiPHP INI Editor** or **Select PHP Version > Options**.
- In Plesk, open **PHP Settings** for the domain.
- On managed WordPress hosts, look for PHP or upload settings, or ask support.

Set values like these:

- upload_max_filesize = 128M
- post_max_size = 128M
- max_execution_time = 300

Save, reload Media > Add New and check that the maximum upload size has changed. Then try the upload again.

## Fix 2: Use php.ini, .user.ini or .htaccess

If your host has no settings screen, you may be able to set the limits in a file in the site's root folder.

**php.ini or .user.ini** (common on PHP-FPM and many shared hosts):

upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300

**.htaccess** (only on Apache running PHP as a module):

php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 300

If adding these lines to .htaccess causes a 500 error, your server does not support them. Remove them and use .user.ini or ask your host instead. See our [500 internal server error guide](https://mykavo.app/blog/500-internal-server-error) if the site breaks.

Changes to .user.ini can take a few minutes to apply, because PHP caches it.

Note that the host's own maximum always wins. If your plan allows 64 MB, setting 128M in a file does nothing.

## Fix 3: Upload the file another way

You do not have to upload a theme or plugin through the browser at all:

1. Unzip the theme or plugin on your computer.
2. Connect to the site with SFTP or your host's file manager.
3. Upload the theme folder to wp-content/themes, or the plugin folder to wp-content/plugins.
4. Go to **Appearance > Themes** or **Plugins** in wp-admin and activate it.

Many host file managers also let you upload the zip file and extract it on the server, which is much faster than uploading thousands of small files.

For large media files, consider compressing images before upload. Photos straight from a camera are often 10 MB or more, far bigger than a web page needs. Our [website speed guide](https://mykavo.app/blog/website-speed) explains why smaller images matter.

## Still seeing the message?

- **Clear your browser cache** and try in a private window.
- **Try uploading with plugins deactivated**, because a security plugin can block large uploads or form submissions. See our [plugin conflict guide](https://mykavo.app/blog/wordpress-plugin-conflict).
- **Check the PHP memory limit**, since installing a large theme also needs memory. See [how to fix the WordPress memory limit](https://mykavo.app/blog/wordpress-memory-limit).
- **Ask your host** whether a web application firewall or a proxy such as Cloudflare limits the request size. Cloudflare's free plan, for example, rejects uploads larger than 100 MB.

## After the upload: check the site

A new theme or plugin can change how your pages look, break a layout or remove a script you rely on, such as analytics or a contact form. Before you move on, open your most important pages and check them. If something looks wrong, our guides to [updating a WordPress theme](https://mykavo.app/blog/update-wordpress-theme) and [rolling back a plugin](https://mykavo.app/blog/rollback-wordpress-plugin) can help.

## Let MyKavo watch for side effects

Installing or updating a theme or plugin is exactly when sites break quietly: a missing buy button, a changed title tag, a removed tracking script. [MyKavo](https://mykavo.app/) compares your important pages against an approved baseline and alerts you to visual, SEO, script and link changes, with before and after screenshots. The free MyKavo WordPress plugin records which plugin, theme or core change happened, so you can connect a broken page to the upload that caused it.

## Frequently asked questions

### What does "The link you followed has expired" mean in WordPress?

Usually that the file you uploaded is larger than the server allows, or the upload took longer than allowed. PHP discards the oversized form, the security token is lost, and WordPress shows this generic message.

### How do I fix "The link you followed has expired"?

Raise upload_max_filesize, post_max_size and max_execution_time in your hosting panel or in php.ini or .user.ini. If you cannot, upload the theme or plugin folder over SFTP or the file manager and activate it in wp-admin.

### How do I check my WordPress upload limit?

Go to Media > Add New and read "Maximum upload file size" under the upload box, or check Tools > Site Health > Info > Server.

### What should upload_max_filesize be for WordPress?

64 MB to 128 MB covers almost every theme and plugin. Set post_max_size to the same value or larger, and max_execution_time to about 300 seconds for large uploads.

### Why does the error still appear after I changed the limits?

Your host's maximum may be lower than what you set, the change may not have applied yet (.user.ini is cached for a few minutes), or a security plugin, firewall or Cloudflare may be limiting the upload size.

### Can I install a theme without uploading it in wp-admin?

Yes. Unzip it and upload the theme folder to wp-content/themes with SFTP or your host's file manager, then activate it under Appearance > Themes.
