WordPress "The Link You Followed Has Expired": How to Fix It (2026)

The Link You Followed Has Expired - WordPress error fix

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_filesize and post_max_size in 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_filesize is the largest single file PHP accepts.
  • post_max_size is the largest total request PHP accepts. It should be at least as big as the upload limit.
  • max_execution_time and max_input_time can 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_filesize and post_max_size there. This is the safest way.
  • php.ini. If your host allows it, add the lines below to the php.ini or .user.ini file 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

  1. Unzip the theme or plugin on your computer.
  2. Connect with FTP or open your hosting File Manager.
  3. Upload the unzipped folder to wp-content/themes or wp-content/plugins.
  4. 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

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *