WordPress: The link you followed has expired
Usually an upload (theme, plugin, media) larger than PHP’s upload/post limits — WordPress receives an empty request and shows this generic message.
The link you followed has expired Meaning
When a request exceeds post_max_size, PHP discards the whole POST body, including WordPress’s nonce, so the nonce check fails with “link expired”. Genuine expired nonces (forms left open for over 24 hours) cause it too.
Common causes
- Upload bigger than
upload_max_filesize/post_max_size - Request taking longer than
max_execution_time - Form left open longer than the nonce lifetime
- Caching plugin serving stale nonces
⚡ Quick fix
- Raise upload_max_filesize and post_max_size (post ≥ upload)
- Upload large themes/plugins via FTP or WP-CLI instead
- Reload the page and resubmit
- Exclude admin/form pages from page caching
Detailed fix by platform
PHP
- .user.ini / php.ini (shared hosting: cPanel → MultiPHP INI Editor):ini
upload_max_filesize = 128M post_max_size = 128M max_execution_time = 300 memory_limit = 256M
WordPress
wp plugin install ./plugin.zip --activatebypasses browser upload limits.
How to diagnose
- Size — How big is the upload?
- Limits — Media → Add New shows the max upload size
- Cache — Is the form page cached?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in WordPress
- Call to undefined function create_function() WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each()
- Installation failed: Could not create directory WordPress: Installation failed: Could not create directory (plugin/theme install or update)
- 403 Forbidden wp-admin WordPress: 403 Forbidden on wp-admin, wp-login.php or admin-ajax.php
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 14 Oct 2026