Few WordPress error messages are as vague as “The link you followed has expired. Please try again.” Almost every beginner encounters this error right after downloading a new WordPress theme or heavy plugin `.zip` file and clicking Install Now inside /wp-admin/.
Despite the confusing wording, no link actually expired—instead, your file exceeded your hosting account’s PHP upload size or execution time limit. Here are 3 fast ways to fix it.
Outgrowing Free Hosting Limits? Claim Our Partner Discounts
Upgrade to fast Hostinger LiteSpeed WordPress Hosting (with an extra 20% referral discount + free domain) or grab low-cost Namecheap cPanel Hosting & Domains with free WHOIS privacy:
Method 1: Increase Limits in cPanel MultiPHP INI Editor (Recommended)
On many free and starter shared hosting plans, upload_max_filesize defaults to a tiny 2 MB or 8 MB, while modern themes often weigh 15 MB to 35 MB:
- Log into cPanel and open MultiPHP INI Editor.
- Select your domain from the dropdown list.
- Update these four values and click Apply:
upload_max_filesize = 64M(or `128M`)post_max_size = 128M*(Must be equal to or larger than `upload_max_filesize`!)*memory_limit = 256Mmax_execution_time = 180
Method 2: Raise Memory in `wp-config.php` & `.htaccess`
If your control panel doesn’t show MultiPHP INI Editor, generate a clean `256M` memory snippet using our Free WordPress wp-config.php Optimizer, and read our full guide on Fixing Allowed Memory Size Exhausted in WordPress.
Method 3: The FTP Bypass for Hard-Capped Free Hosting
If your free hosting provider strictly locks HTTP uploads at 10 MB, simply unzip the plugin or theme on your laptop, connect to your server via FileZilla FTP, and upload the folder directly into /wp-content/plugins/ or /wp-content/themes/!
Frequently Asked Questions (FAQ)
Why does WordPress say The link you followed has expired when uploading a theme or plugin?
This error occurs when the ZIP file you are uploading exceeds your hosting server’s PHP upload_max_filesize or post_max_size limit, or takes longer to upload than max_execution_time allows.
What are the recommended PHP upload limits for WordPress in cPanel?
Set upload_max_filesize to at least 64M (or 128M), post_max_size to 128M, memory_limit to 256M, and max_execution_time to 180 seconds.
What if my free host blocks php.ini and .htaccess upload limit overrides?
If your free hosting provider hard-caps HTTP uploads at 2MB or 10MB, extract the theme or plugin ZIP file on your computer and upload the unzipped folder directly to /wp-content/themes/ or /wp-content/plugins/ using an FTP client like FileZilla.