How To Fix ‘The Link You Followed Has Expired’ Error In WordPress

guide to fixing WordPress link you followed has expired error by increasing PHP upload limits

Post Date: August 25, 2020
Last Updated:
November 12, 2026

Introduction

WordPress link you followed has expired error is a common issue that occurs when uploading a WordPress theme, installing a plugin, or importing a large demo file through the WordPress dashboard.

This error usually occurs when the uploaded file exceeds the PHP upload size limit or when the server has insufficient PHP execution time, memory, or request limits.

For example, when you try to upload a large WordPress theme or plugin ZIP file, your hosting server may reject the request because of its configured PHP resource limits.

In this guide, you will learn how to fix the WordPress link you followed has expired error by increasing the PHP upload size, execution time, memory limit, and other server settings using simple step-by-step methods.

The error commonly occurs because of insufficient PHP resource limits configured on your web hosting server.

The following PHP settings can affect WordPress file uploads:

  • upload_max_filesize – Maximum size of an individual uploaded file.
  • post_max_size – Maximum size of POST request data.
  • max_execution_time – Maximum time a PHP script can execute.
  • max_input_vars – Maximum number of input variables PHP can accept.
  • memory_limit – Maximum memory allocated to a PHP script.

For example, if your WordPress theme ZIP file is 100 MB but your server allows only 64 MB uploads, the upload may fail.

How to Check the Maximum WordPress Upload Size

Before changing your server configuration, check the maximum upload size allowed by your WordPress installation.

Follow these steps:

  1. Log in to your WordPress admin dashboard.
  2. Navigate to Media → Add New.
  3. Check the maximum upload file size displayed on the page.
WordPress link you followed has expired error showing maximum upload file size limit

If your theme or plugin file exceeds this limit, you may need to increase the WordPress PHP upload limit.

You can fix this issue by increasing the PHP resource limits on your hosting server.

Before making any changes, take a backup of your website and configuration files.

Method 1: Increase WordPress Upload Limit Using the .htaccess File

The .htaccess file is commonly used to configure Apache web server settings.

Follow these steps:

  1. Connect to your hosting server using cPanel File Manager or FTP.
  2. Navigate to your WordPress root directory, usually public_html.
  3. Locate the .htaccess file.
  4. Enable hidden files if the file is not visible.
  5. Open the file and add the following code at the end:
php_value max_execution_time 300
php_value upload_max_filesize 128M
php_value post_max_size 256M
php_value memory_limit 256M
php_value max_input_vars 5000
  1. Save the changes.
  2. Return to your WordPress dashboard and check the upload size.

Note: This method works only when the Apache/PHP configuration supports PHP directives in .htaccess. On PHP-FPM or CGI-based hosting, these directives may cause an HTTP 500 error. If this happens, remove the added lines and use another method.

Method 2: Increase WordPress PHP Upload Limit Using php.ini

Another way to increase the WordPress upload size is by modifying the php.ini configuration file.

Follow these steps:

  1. Log in to your hosting server or open cPanel File Manager.
  2. Navigate to your website’s document root or the PHP configuration directory.
  3. Locate the php.ini file.
  4. If it does not exist, create one only if your hosting environment supports local PHP configuration files.
  5. Add or update the following settings:
max_execution_time = 300
upload_max_filesize = 128M
post_max_size = 256M
memory_limit = 256M
max_input_vars = 5000
  1. Save the configuration file.
  2. Restart the relevant PHP service if required by your hosting environment.

Note: The location of php.ini and whether local configuration files are supported depend on your hosting provider and PHP handler.

Method 3: Increase PHP Upload Size Through cPanel

If your website is hosted on a cPanel server, you can increase the PHP upload limit using the graphical interface.

Follow these steps:

  1. Log in to your cPanel account.
  2. Navigate to Software → MultiPHP INI Editor.
  3. Select your WordPress domain.
  4. Locate the PHP configuration options.
  5. Update the following values:
max_execution_time = 300
upload_max_filesize = 128M
post_max_size = 256M
memory_limit = 256M
max_input_vars = 5000
  1. Click Apply or Save to update the configuration.

This is a convenient method for cPanel users because it allows you to modify PHP settings without manually editing server configuration files.

Method 4: Restart the Web Server or PHP Service

If you have modified the PHP configuration directly on your server, the relevant service may need to be restarted for the changes to take effect.

For Apache on Ubuntu/Debian:

systemctl restart apache2

For Apache on CentOS/RHEL:

systemctl restart httpd

For PHP-FPM, restart the service corresponding to your installed PHP version. For example:

systemctl restart php8.3-fpm

Important: Restart only the relevant service. On managed hosting, PHP configuration changes may take effect automatically, and you may not have permission to restart server services.

How to Verify the Updated WordPress PHP Upload Limit

After updating the PHP configuration, verify that the new values have been applied.

Method 1: Check WordPress Media Library

  1. Log in to your WordPress dashboard.
  2. Navigate to Media → Add New.
  3. Check the maximum upload file size displayed on the page.

Method 2: Check WordPress Site Health

  1. Open the WordPress admin dashboard.
  2. Navigate to Tools → Site Health.
  3. Open the Info tab.
  4. Expand the Server section.
  5. Review the PHP configuration information.

If the updated values are displayed correctly, try uploading your WordPress theme or plugin again.

If the error continues, check your hosting provider’s upload restrictions, PHP configuration, security plugins, and WordPress session or nonce validity.

Conclusion

The WordPress link you followed has expired error is commonly associated with PHP upload restrictions and insufficient server resource limits.

You can fix the issue by increasing the PHP upload size, POST size, execution time, and memory limit through .htaccess, php.ini, or cPanel’s MultiPHP INI Editor.

After applying the changes, verify the PHP settings and try uploading your theme or plugin again.

If you are importing a theme demo, also check the theme’s recommended server requirements and follow its demo import checklist.

Keeping your WordPress installation, plugins, themes, and PHP version updated also helps maintain website security and performance.

Frequently Asked Questions (FAQs)

1. Why does the “The Link You Followed Has Expired” error occur in WordPress?

This error usually occurs when the uploaded theme or plugin file exceeds the PHP upload size limit or when the server has insufficient PHP execution time or memory.

2. How can I increase the maximum upload size in WordPress?

You can increase the WordPress upload size by modifying PHP settings in the .htaccess or php.ini file, or by using the cPanel MultiPHP INI Editor.

3. How do I check the maximum upload size in WordPress?

Log in to your WordPress dashboard and navigate to Media → Add New. The maximum upload file size will be displayed below the upload section.

How to Install / Update WordPress Automatically Without Using FTP

Fixed:Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

Need Help Fixing WordPress Upload Errors?

Are you experiencing the “The Link You Followed Has Expired” error while uploading WordPress themes, installing plugins, or importing demo content?

Pheonix Solutions provides reliable WordPress hosting, website management, server administration, and technical support.

Our team can help you troubleshoot WordPress upload errors, configure PHP upload limits, increase server resource limits, resolve plugin and theme installation issues, and improve your website’s performance.

Get in touch with our team to discuss your WordPress website requirements and get professional technical assistance.

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Comment

Scroll to Top