Fix “The Link You Followed Has Expired” Error in WordPress
This guide presents solutions ordered from quickest and easiest to more complex and time-consuming. Start with the first method and work your way down if the error persists.
Understanding the Error
This error happens when WordPress thinks a form submission is invalid or expired, often due to security measures. It can be caused by various factors, from simple timeouts to more complex server issues.
Solutions (From Easiest to Most Complex)
1. Refresh and Re-login
- Refresh your browser page.
- Log in again if asked.
- Try the action that caused the error again.
2. Clear Browser Data
- Open browser settings.
- Find the option to clear browsing data.
- Select cache and cookies.
- Clear the data and restart your browser.
- Log in to WordPress again.
3. Increase WordPress Memory
- Open
wp-config.php
via FTP or file manager. - Add:
define('WP_MEMORY_LIMIT', '256M');
- Save and test.
4. Verify WordPress URLs
- Access your database through phpMyAdmin.
- Find the
wp_options
table. - Check
siteurl
andhome
entries. - Update URLs if incorrect.
- Save changes and test.
5. Reset WordPress Salts
- Go to https://api.wordpress.org/secret-key/1.1/salt/
- Copy the generated keys.
- Replace the existing keys in
wp-config.php
. - Save and try logging in again.
6. Disable Security Plugins
- Access your site via FTP or hosting file manager.
- Go to
/wp-content/plugins/
. - Rename security plugin folders (e.g.,
wordfence
towordfence_off
). - Try accessing the admin area.
- If successful, reactivate plugins one by one to identify the conflict.
7. Disable all Plugins
- Rename the
/wp-content/plugins/
folder to/wp-content/plugins_old/
. - Try accessing the admin area.
- If successful, move plugins back one by one to find the culprit.
8. Switch to Default Theme
- Rename your current theme folder in
/wp-content/themes/
. - WordPress will switch to a default theme.
- Test if the error persists.
9. Recreate .htaccess File
- Rename existing
.htaccess
to.htaccess_old
. - Go to Settings > Permalinks in WordPress.
- Click ‘Save Changes’ to generate a new
.htaccess
.
10. Check File Permissions
- Set directories to 755 (or 750).
- Set files to 644 (or 640).
- Use FTP client or hosting file manager to adjust permissions.
11. Repair Database
- Add
define('WP_ALLOW_REPAIR', true);
towp-config.php
. - Visit
yoursite.com/wp-admin/maint/repair.php
. - Run database repair.
- Remove the line from
wp-config.php
after repair.
12. Adjust Server Timeout Settings
- Create or edit
.htaccess
file in WordPress root. - Add:
php_value max_execution_time 300
php_value max_input_time 300
php_value max_input_vars 3000
php_value memory_limit 256M
php_value post_max_size 64M
php_value upload_max_filesize 64M
- Save and test.
13. Increase PHP Limits
In php.ini
or through hosting panel, increase:
- max_execution_time
- max_input_time
- memory_limit
- post_max_size
- upload_max_filesize
14. Check for Malware
- Use a security plugin or online scanner to check for malware.
- Remove any detected threats.
- Change all passwords after cleaning.
15. Check Server Logs
- Access error logs via hosting panel or FTP.
- Look for WordPress or PHP related errors.
- Address specific issues found.
16. Update PHP Version
- Check current PHP version with your host.
- Request an update to the latest stable version.
- Test WordPress admin access after update.
17. Reinstall WordPress Core
- Download fresh WordPress copy.
- Replace
wp-admin
andwp-includes
folders. - Replace root files except
wp-config.php
andwp-content
.
18. Contact Your Host
If all else fails, your hosting environment might have specific issues. Contact your hosting provider for assistance.
Remember: Always back up your site before making changes!
If these methods don’t fix the issue, consider getting help from a WordPress professional.
Improve your WordPress site with Linkilo, the best internal linking tool. Stop wasting time on tedious internal linking. Linkilo's WordPress plugin does the heavy lifting, so you can focus on creating great content while improving your site's navigation and user experience.
More Info
Compare Us
General Info