How To Fix "The Link You Followed Has Expired" in WordPress
The error "The Link You Followed Has Expired" in WordPress can be frustrating, but there are several effective methods to resolve it. Here are six detailed methods to fix this issue:
Increase File Upload Size Limit via .htaccess
Modify php.ini File
Increase Limits via wp-config.php
Adjusting WordPress Theme Functions File
Update Server Configuration in cPanel
Contact Hosting Provider
Increase File Upload Size Limit via .htaccess
Here are the steps to increase file upload size limit with the .htaccess file:
Access .htaccess File
Edit .htaccess File
Save and Upload
Test the Changes
Access .htaccess File
Connect to your website using an FTP client, like Filezilla or access your hosting control panel's File Manager.Locate the .htaccess file in the root directory of your WordPress installation. Before proceeding to the next step, make a copy of the .htaccess file and rename it as a backup in case things go wrong.
Edit .htaccess File
Download a backup of the .htaccess file before making any changes. Open the file in a text editor and add the following lines at the end:
php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_time 300
Save and Upload
Save the changes and upload the updated .htaccess file back to the server.
Test the Changes
Try uploading the file, theme, or plugin again to see if the issue is resolved.
Modify php.ini File
Here are the steps to modify the php.ini file:
Access php.ini File
Edit php.ini File
Save and Upload
Restart Server
Test the Changes
Access php.ini File
Use an FTP client or your hosting control panel to locate the php.ini file. It may be in the root directory or in a subdirectory like public_html. Make sure to create a backup copy of your php.ini in case you run into any errors.
Edit php.ini File
If the file doesn’t exist, create a new file named php.ini. Open the file in a text editor and add the following lines:
upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300
Save and Upload
Save the changes and upload the file back to the server.
Restart Server
Some servers may require a restart for the changes to take effect. Check with your hosting provider if unsure.
Test the Changes
Attempt the upload process again to verify the fix.
Increase Limits via wp-config.php
Here are the steps to increase PHP limits using the wp-config.php file:
Access wp-config.php File
Edit wp-config.php File
Save and Upload
Test the Changes
Access wp-config.php File
Connect to your website via FTP or through the File Manager in your hosting control panel. Locate the wp-config.php file in the root directory of your WordPress installation. As a note, it’s important before starting this step, to create a backup copy of the wp-config.php as a fallback in case things go sideways.
Edit wp-config.php File
Open the file in a text editor and add the following lines before the line that says / That's all, stop editing! Happy blogging. /
@ini_set('upload_max_size' , '64M' ); @ini_set('post_max_size','64M'); @ini_set('max_execution_time','300');
Save and Upload
Save the changes and upload the updated wp-config.php file back to the server.
Test the Changes
Try uploading the file again to see if the issue is resolved.
Adjusting WordPress Theme Functions File
Here’s the steps on how to adjust the PHP limits using the functions.php of your WordPress theme:
Access Theme Functions File
Edit functions.php File
Save and Upload
Test the Changes
Access Theme Functions File
Use an FTP client or the File Manager in your hosting control panel. Navigate to wp-content/themes/your-theme and locate the functions.php file. Make sure to create a backup copy of your functions.php file in case your changes create any errors.
Edit functions.php File
Open the file in a text editor and add the following lines of code:
@ini_set('upload_max_size' , '64M' ); @ini_set('post_max_size','64M'); @ini_set('max_execution_time','300');
Save and Upload
Save the changes and upload the updated functions.php file back to the server.
Test the Changes
Attempt the upload process again to verify the fix.
Update Server Configuration in cPanel
In the case you’re having issues updating some of the WordPress files, you can try updating the server configuration if your web hosting uses cPanel. Here are the steps:
Access cPanel
Select MultiPHP INI Editor
Configure PHP Settings
Save Changes
Test the Changes
Access cPanel
Log in to your hosting account and navigate to the cPanel dashboard.
Select MultiPHP INI Editor