WordPress adds a temporary security token called a nonce to every dashboard form and checks it on submit to block forged requests. If a request arrives with no token or an expired one, WordPress stops and shows The link you followed has expired. Please try again. The same idea exists in other frameworks, such as Laravel’s 419 Page Expired.
Common causes
- The file is larger than
post_max_size: by far the usual reason. When a request exceeds this limit, PHP discards all form data, including the token, so WordPress thinks the link expired. - The file is larger than
upload_max_filesize, so the upload fails. See File exceeds upload_max_filesize. - The execution time limit (
max_execution_time) ran out while uploading a big file over a slow connection. - The page was open for a long time and the token expired.
- A cache storing dashboard pages or forms, serving an old token.
- You logged out in another tab, or the site’s cookies are corrupted.
How to fix it
1. Reload and try again
If you weren’t uploading a file, reload the page, or log out and back in, then repeat the action.
2. Raise the PHP limits
In cPanel open Software » MultiPHP INI Editor, choose the domain in Basic Mode, and set:
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300
max_input_time = 300
memory_limit = 256M
Click Apply, then check the new limit under Media » Add New. post_max_size must be equal to or larger than upload_max_filesize.
3. Upload the theme or plugin through File Manager
If the file is very large:
- Open Files » File Manager, then
wp-content/themes(orwp-content/pluginsfor plugins). - Click Upload and upload the ZIP.
- Select it, click Extract, then delete the ZIP.
- Activate the theme in Appearance » Themes, or the plugin under Plugins.
4. Keep the dashboard out of the cache
Make sure your caching plugin or Cloudflare doesn’t cache /wp-admin, wp-login.php or form pages for logged-in users. LiteSpeed Cache excludes the dashboard by default, so review any rules you added by hand.
5. Clear cookies
If the message appears on nearly every form, clear the site’s cookies in your browser and log in again.
Prevention
- Set suitable PHP limits before installing large themes.
- Don’t leave edit screens open for days; save your work before submitting.
- Never cache dashboard pages.
On ArabyHost
You set post_max_size, upload_max_filesize and the execution time per domain in MultiPHP INI Editor in cPanel, opened with one click from the Araby Panel, and File Manager is there for uploading big themes directly. LiteSpeed Cache is available to speed up the front end, and it doesn’t cache dashboard pages by default. If you’re moving an existing site with its themes, take advantage of our free migration help.
FAQ
Why does it only happen when I upload a theme?
Theme packages, especially premium ones bundled with plugins and demo content, are often bigger than the default post_max_size. PHP then drops the whole request and WordPress sees a missing security token.
Does the message mean my site is hacked or the link is fake?
No. It's a normal WordPress safeguard that rejects any request without a valid token. It's usually caused by file size or a page left open too long.
How long is a WordPress security token valid?
WordPress nonces stay valid for up to about 24 hours. If a form page has been open longer than that, reload it before submitting.