How to Fix ‘The Link You Followed Has Expired’ Error in WordPress

This tutorial explains how to Fix ‘The Link You Followed Has Expired’ Error in Wordpress that can occur when uploading themes and plugins to a website.

If you’re seeing an error on your WordPress site that states ‘The Link You Followed Has Expired’ when trying to upload a theme or plugin then don’t worry we’re here to tell you how to solve it!

The most common reason for this to occur is that within your websites PHP settings the max file upload setting isn’t large enough for the theme or plugin.

These PHP settings are often initially set by your website hosting provider and can range from 2MB up to 1GB depending on the provider. They’re generally set to stop users from uploading particularly large media files to the WordPress Media Library. Or in some cases extremely large plugins and themes.

Fixing the Error:

There are a few different methods for fixing this error each of which will depend on your website hosting setup and your confidence with editing WordPress files.

1. Change the PHP settings within Cpanel

One of the most commonly used Web Hosting Panels is Cpanel if this is the platform that your hosting provider uses then the PHP settings are usually within the Software section and are called ‘Select PHP Version’. Within here you’ll want to select PHP options in this section you’ll find the upload_max_filesize and max_execution_time. These are the two settings that you’ll need to set. For Max Execution time this will usually be a relatively small number such as 30 which represents the number of seconds that a script is able to run for. If you’re uploading a large theme or plugin set this to something like 300.

For the upload_max_filesize there will be a dropdown with options for the size that you can set this to. These sizes double in increments so you’ll want to select a size larger than the file that you’re uploading.

It’s worth noting that it’s generally always worth setting these back to what they were before uploading the theme or plugin once you’ve added it to the site.

2. Change the PHP settings within Plesk
Another very popular platform that hosting providers use is Plesk once logging into your hosting you should see a section called PHP settings.

This will usually have the same options as mentioned for Cpanel so: upload_max_filesize and max_execution_time. The layout / design of the panel will depend on your hosting provider but they will either have dropdown selectors or the ability to update these values by typing.

Again it’s usually good practice to make a note of what these were before changing them and set them back to that once you’ve uploaded the relevant theme or plugin.


3. Asking your hosting provider

In some cases your website hosting provider may not make the PHP settings available within your control panel to edit, this will depend from platform to platform and in this instance you can either follow the steps mentioned below to manually edit files, or ask your hosting provider to update the details for the site.



4. Updating the .htaccess file

To do this you’ll want to log into your hosting whether it’s Cpanel, Plesk or any other control panel and look for the file manager section. Once clicking into the file manager you’ll want to go into public_html. Within this section should be your .htaccess file some hosting providers will have a setting enabled that hides dot files. If you click the settings option within this page you should see something similar to Show Hidden files.

Once locating your .htaccess file click to edit it once opened scroll down to the section that looks similar to the PHP setup that we mentioned before so:

Upload_max_file_size and max_execution_time both of these will have values after them, make sure to note the values before changing them for example 8M. To increase this you would simply change it to say 128M.

In some cases your .htaccess file may have a custom configuration with additional values that have been added by your hosting provider. In these instances it’s always best to check with them about editing the .htaccess file.


Uploading Your Theme / Plugin:

Once you’ve set the PHP values to a higher level if they are larger than your theme or plugin you should then be able to upload the item fully.

We hope this provides you with an idea of fixing the WordPress error ‘The Link You Follow Expired’ We’d appreciate a share or any comments if you found this useful, thanks!

Newsletter Updates

Enter your email address below to subscribe to our newsletter

Leave a Reply

Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124