Skip to content

How to fix "The link you clicked has expired" error in WordPress?

The “The link you clicked has expired” error is one of the most common WordPress issues. It most often appears when installing a theme or plugin, or even when updating WordPress. In this article, we will show you how to effectively solve this problem using various techniques.

Increasing PHP limits

One of the simplest and most effective ways to fix this error is to increase the PHP limits on your server. Sometimes when you try to upload a large file, PHP may interrupt the process, resulting in an error.

Open file .htaccess on the root directory of your server and add the following code:

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

After saving the file and restarting the server, the error should be fixed.

Editing the php.ini file

If the above solution doesn't work, you can try editing the php.ini file on the server. This file contains various PHP configuration settings that you can adjust to solve the problem.

Open the php.ini file and look for the following lines:

upload_max_filesize = 2M post_max_size = 8M max_execution_time = 30

Change the values to:

upload_max_filesize = 64M post_max_size = 128M max_execution_time = 300

Then save the file and restart the server.

Using the "Increase Maximum Upload File Size" plugin

If the above methods do not bring results, you can use the dedicated "Increase Maximum Upload File Size" plug-in. After installing and activating the plugin, enter the desired values in the settings and save the changes. This plugin will allow you to increase the file upload limit without the need to edit the server configuration files.

Using hosting tools

If you use a hosting company that offers server management tools such as cPanel, you can use the “MultiPHP INI Editor” or similar option. This tool allows you to change various PHP settings, including file upload limits and execution times.

Contact your hosting provider

If none of the above solutions work, contact your hosting provider. They may be able to increase your PHP limits for you or help you identify and fix the problem.

To summarize, the “The link you clicked has expired” error in WordPress is usually caused by PHP limitations on the server. The methods presented above should help you solve this problem effectively. However, remember that it is always a good idea to have a backup of your website before making any changes to your configuration files or server settings.

Check out the offer of 1500+ Premium WordPress plugins and themes!