How to fix The link you followed has expired WordPress

You are uploading images, themes, and plugins naturally without success, and it says The link you followed has expired. Don’t worry. This is a common WordPress error, and you will be able to fix it in this tutorial.

The link you followed has expired
The link you followed has expired

Causes of this error:

  • The PHP version configuration in Hosting is limited to the maximum upload size (usually the main cause).
  • The website source code contains a command line that limits the maximum upload size (which rarely happens).

How to check your allowed upload size

Go to your website admin, click Library on the menu and select Upload; you will see your allowed upload size. Compare with the theme or plugin file you want to upload, is it lower?

How to fix The link you followed has expired WordPress - Check your allowed upload size
Check your allowed upload size

To fix this error, you need to use one of the ways below.

Edit PHP version configuration

This is the simplest way to fix The link you followed has expired error. And I recommend using this method first.

Step 1: Access the Cpanel management of the hosting you are using.

How to fix The link you followed has expired WordPress - Go to hosting panel
Go to hosting panel

Step 2: Go to Select PHP Version.

How to fix The link you followed has expired WordPress - Go to Select PHP Version
Go to Select PHP Version

Step 3: Click Switch To PHP Options in the right corner.

How to fix The link you followed has expired WordPress - Click Switch To PHP Options
Click Switch To PHP Options

Step 4: Find the lines post_max_size and upload_max_filesize and fix them to the amount of upload size you want. Don’t forget to click the Save button.

How to fix The link you followed has expired WordPress - Find the lines post_max_size and upload_max_filesize and edit
Find the lines post_max_size and upload_max_filesize and edit

Upload files directly to hosting

Step 1: In your Cpanel manager, select File Manager.

How to fix The link you followed has expired WordPress - Select File Manager
Select File Manager

Step 2: Deep open the public_htnl/wp-content folders . If you upload a theme, go to the themes folder, upload a plugin, and go to plugins. Then click the upload button above.

How to fix The link you followed has expired WordPress - To uoload the theme, go to the themes folder, and to upload the plugin, go to plugins folder
To upload the theme, go to the themes folder, and to upload the plugin, go to the plugins folder

Step 3: Upload your zip file.

How to fix The link you followed has expired WordPress - Upload zip file
Upload zip file

Step 4: Refresh the theme or plugins folder page you recently upload (F5). Right-click on the zip file and select Extract.

How to fix The link you followed has expired WordPress - Right click on the zip file and select Extract
Right-click on the zip file and select Extract

If a message appears, select the Extract File button. Then don’t forget to delete the zip file to reduce the space used on the hosting.

How to fix The link you followed has expired WordPress - Select the Extract File button
Select the Extract File button

Fix the code in WordPress to allow higher downloads

You try one of the following ways to insert the code to fix The link you followed has expired. WordPress.

Edit the .htaccess file

Open the public_html/ directory, edit the .htaccess file and add the following line of code in the last row.

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

Edit the php.ini file

Also, in public_html/ folder, edit it to add this paragraph if you see the php.ini file. If you don’t have that file, you can create it yourself.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Edit the theme’s function.php file in use.

Go to the path public_html/wp-content/themes/your-theme/ find the file function.php to edit and add this line of code.

@ini_set( 'upload_max_size' , '150M' );
@ini_set( 'post_max_size', '150M');

Epilogue

One error but many ways to fix it anyway can fix The link you followed has expired. Did this article help you?

Hieu Tran Ngoc Minh

Hieu (born in 1996) holds a Bachelor's degree in Business Administration from Saigon Technology University. Currently a Data Analyst at Ninja Van, Hieu has extensive experience in Data Analysis and Digital Marketing. This blog is where Hieu shares practical experiences from work and life.

Leave a Comment

Feel free to leave your comment (preferably in English), and we will review and respond as soon as possible. Please use a real email to ensure your comment is approved and to receive notifications when we reply. You can also add an avatar to your email.