![Image[1]-How to fix "The link you follow has expired" error in WordPress - Photon Flux | Professional WordPress repair service, worldwide, fast response!](https://www.361sale.com/wp-content/uploads/2024/10/2024101407392369.jpg)
If you've ever uploaded a theme or plugin to WordPress and encountered the "The link you follow has expired" error, this article is for you. In this article, we'll dive into the causes of this error and how to fix it to make sure you can upload your files without being bothered by this issue.
Why do I get the error "The link you are following has expired"?
This error usually appears when you try to upload a file, such as installing a WordPress theme or plugin, or uploading a media file. This error is prompted because the WordPress hosting provider has set a limit on the file upload size. When you upload a fileExceeding this limitThis error occurs when the
![Image[2]-How to fix "The link you follow has expired" error in WordPress - Photon Flux | Professional WordPress repair service, worldwide, fast response!](https://www.361sale.com/wp-content/uploads/2024/10/2024101213153049.png)
Checking upload file size limits
You can navigate in the WordPress admin dashboard to the Media → Add New, view "Maximum upload file size" to find out the current limitations. Often, the limit is too small to upload, which may not be enough to support some of the larger theme or plugin files.
![Image[3]-How to fix "The link you follow has expired" error in WordPress - Photon Flux | Professional WordPress repair service, worldwide, fast response!](https://www.361sale.com/wp-content/uploads/2024/10/2024101407124315.png)
If the current limit is not sufficient, you can increase the upload file size limit by doing the following:
Method 1: Edit the functions.php file
This can be done through the theme's functions.php
file to increase the upload file size limit. Please follow the steps below:
- Login WordPress DashboardThe
- Navigate to Appearance → Theme EditorThe
![Image[4]-How to fix "The link you follow has expired" error in WordPress - Photon Flux | Professional WordPress repair service, worldwide, fast response!](https://www.361sale.com/wp-content/uploads/2024/10/2024101407171871.png)
- In the list of files on the right hand side find
functions.php
and click to open it. - Add the following code snippet to the end of the file:
@ini_set( 'upload_max_size' , '128M' ); @ini_set( 'post_max_size', '128M' ); @ini_set( 'max_execution_time', '300' ).@ini_set( 'upload_max_size' , '128M' ); @ini_set( 'post_max_size', '128M' ); @ini_set( 'max_execution_time', '300' ).@ini_set( 'upload_max_size' , '128M' ); @ini_set( 'post_max_size', '128M' ); @ini_set( 'max_execution_time', '300' ).
This code snippet will set the upload file size and maximum execution time to 128MB and 300 seconds respectively, you can adjust these values as needed. Before making any changes, it is recommended to backup your files to prevent loss.
![Image[5]-How to fix "The link you follow has expired" error in WordPress - Photon Flux | Professional WordPress repair service, worldwide, fast response!](https://www.361sale.com/wp-content/uploads/2024/10/2024101407185715.png)
Method 2: Modify the .htaccess file
![Image[6]-How to fix "The link you follow has expired" error in WordPress - Photon Flux | Professional WordPress repair service, worldwide, fast response!](https://www.361sale.com/wp-content/uploads/2024/10/2024101213162365.png)
.htaccess
The file is located in the root folder of the WordPress installation directory. Please follow the steps below:
- Access using an FTP client or file manager
.htaccess
Documentation. - show (a ticket)
.htaccess
file, add the following code at the end of the file:
php_value upload_max_filesize 128M php_value post_max_size 128M php_value max_execution_time 300 php_value max_input_time 300php_value upload_max_filesize 128M php_value post_max_size 128M php_value max_execution_time 300 php_value max_input_time 300php_value upload_max_filesize 128M php_value post_max_size 128M php_value max_execution_time 300 php_value max_input_time 300
After saving the file, the new restrictions will take effect immediately. Edit .htaccess
Care needs to be taken with the files, as any incorrect input may result in the site not functioning properly.
Method 3: Modify the php.ini file
If your host allows access to the php.ini
file, you can increase the upload limit by modifying this file. The procedure is as follows:
- Use a file manager or FTP client to find the
php.ini
file and open it. - Find the following line and change the value:
upload_max_filesize = 128M post_max_size = 128M max_execution_time = 300 max_input_time = 300upload_max_filesize = 128M post_max_size = 128M max_execution_time = 300 max_input_time = 300upload_max_filesize = 128M post_max_size = 128M max_execution_time = 300 max_input_time = 300
After you save your changes, you sometimes need to restart the Web server for them to take effect.
![Image[7]-How to fix "The link you follow has expired" error in WordPress - Photon Flux | Professional WordPress repair service, worldwide, fast response!](https://www.361sale.com/wp-content/uploads/2024/10/2024101213170566.png)
Method 4: Update PHP version
Older versions of PHP It may cause incompatibility with the WordPress core or plugins and may even lead to this error. To check and update the PHP version:
- In the WordPress dashboard, navigate to the Tools → Site Health → Information → ServersTo view the current version of PHP, click here.
![Image[8]-How to fix "The link you follow has expired" error in WordPress - Photon Flux | Professional WordPress repair service, worldwide, fast response!](https://www.361sale.com/wp-content/uploads/2024/10/2024101407224087.png)
- Update the PHP version according to your hosting provider's specific guidelines and check that the site functions properly after the update.
Method 5: Check for plug-in conflicts
Plugin conflicts may cause upload errors. You can check this by following the steps below:
- Navigate to Plugins → Installed Plugins, deactivate all plugins.
![Image[9]-How to fix "The link you follow has expired" error in WordPress - Photon Flux | Professional WordPress repair service, worldwide, fast response!](https://www.361sale.com/wp-content/uploads/2024/10/2024101407240133.png)
- Re-enable the plug-ins one by one, checking if there are still errors after each enable.
- If it is determined that a plugin is causing the error, try updating the plugin or contacting the developer for support.
summarize
"The link you are following is out of date" errors usually stem fromInsufficient upload limitBy adjusting the functions.php
,.htaccess
maybe php.ini
The parameters in the file will fix it.
Link to this article:https://www.361sale.com/en/21400
The article is copyrighted and must be reproduced with attribution.
No comments