WordPress "The Link You Followed Has Expired": How to Fix It (2026)
You upload a theme or plugin zip and WordPress answers: The link you followed has expired. It sounds like a login problem, but it is almost always an upload problem. The file was too big for your server settings, or the upload took too long.
The Short Version
- The zip file is larger than the upload limit set in PHP.
- Check
upload_max_filesizeandpost_max_sizein Tools, Site Health, Info, Server. - Raise both above the size of your zip, using your hosting panel or
php.ini. - Or skip the limit: unzip the theme or plugin on your computer and upload the folder by FTP or File Manager.
Why This Error Happens
upload_max_filesizeis the largest single file PHP accepts.post_max_sizeis the largest total request PHP accepts. It should be at least as big as the upload limit.max_execution_timeandmax_input_timecan stop a slow upload before it finishes.
Step 1: Check Your Current Limit
Go to Media, then Add New. WordPress shows "Maximum upload file size" there. You can also open Tools, then Site Health, then Info, then Server and read the PHP values. Compare the number with the size of your zip file.
Step 2: Raise the Limit
Pick the first option that works on your host:
- Hosting panel. Most panels have a PHP settings page. Raise
upload_max_filesizeandpost_max_sizethere. This is the safest way. - php.ini. If your host allows it, add the lines below to the
php.inior.user.inifile in your site folder. - .htaccess. This only works on Apache servers that run PHP as a module. On other setups it can cause a 500 error, so remove the lines if the site breaks. See our 500 error guide.
upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300
The numbers are examples. Use a value larger than your biggest zip file. Some hosts ignore these files and only accept changes in their own panel.
Step 3: Skip the Upload Limit With FTP
- Unzip the theme or plugin on your computer.
- Connect with FTP or open your hosting File Manager.
- Upload the unzipped folder to
wp-content/themesorwp-content/plugins. - Go to Appearance or Plugins in your dashboard and activate it.
Step 4: Check the Zip Itself
Some downloads contain extra folders, such as documentation, with the real theme or plugin zip inside. If the upload fails or WordPress says files are missing, open the download on your computer and upload only the inner zip.
If the Upload Times Out
A very large file on a slow connection can run out of time even with a high size limit. Raise max_execution_time as shown above, or read our maximum execution time guide.
Verified Facts and Sources
Checked in December 2026. The PHP manual describes upload_max_filesize and post_max_size as separate settings, and says post_max_size must be larger than upload_max_filesize. Whether php.ini, .user.ini or .htaccess changes are accepted depends on how your host runs PHP.
Frequently Asked Questions
What value should I use for the upload limit?
Use a value larger than your biggest zip file. For example, 64M is a common choice for theme and plugin zips.
Why does editing .htaccess give me a 500 error?
Some servers run PHP in a way that does not accept php_value lines in .htaccess. Remove the lines and use your hosting panel instead.
Does this also fix media uploads?
Yes. Images and videos use the same PHP upload limits.
Is it a login or security problem?
Almost never. The message is misleading. It normally means the upload was too big or too slow.
Updated December 3, 2026.
More WordPress Error Fixes
- 500 Internal Server Error: Fix the 500 error
- Critical Error on This Website: Fix the critical error message
- White Screen of Death: Fix the blank white page
- Database Connection Error: Fix Error establishing a database connection
- Memory Limit Error: Fix Allowed memory size exhausted
- Update Failed: Fix a failed WordPress update
- 404 After Changing Permalinks: Fix pages showing 404
- Parse and Syntax Error: Fix parse errors from code edits
- Maximum Execution Time Exceeded: Fix timeouts
- Locked Out of WordPress: Reset your admin password
- Headers Already Sent: Fix the headers already sent warning
- Plugin Conflict: Find the plugin causing the problem
- Too Many Redirects: Fix ERR_TOO_MANY_REDIRECTS
- Login page refreshing: fix the wp-admin redirect loop
- Mixed content error: fix the Not Secure warning after HTTPS
- Fatal error after PHP update: roll back and fix safely
- WordPress not sending emails: fix contact form and reset mail
- Stuck in maintenance mode: delete the .maintenance file
- Missed schedule posts: fix scheduled posts not publishing
- REST API error: fix the Site Health warning
- Plugin could not be activated: fix the fatal error on activation
- Another update in progress: remove the update lock
- Not allowed to access this page: fix admin permission errors