How to fix “The link you followed has expired” warning

How this all started

A few days ago we had an emergency support request for a WordPress website which experienced issues when it’s admin tried to upload a newly bought WordPress theme.

He told us that it was the first time he had this issue, he also told us that just recently he moved to a new hosting provider. This rung a bell right away indicating that the issue was probably related to our client’s site new hosting environment. This was because most of the times a WordPress hosting provider limits its resources when it comes to site owners subscribed to their shared hosting plans.

Indeed as we found out this was the case for our client. His hosting provider had assigned to his WordPress site a limit for all media uploads to 2MB. The compress theme file he was trying to upload through WordPress Dashboard the Upload Theme feature was more than 8MB in size so the rule kicked in.

How to increase the maximum upload size and fix the “The link you followed has expired” warning

The easiest way to fix this is to contact your hosting provider support and ask them to increase the PHP upload limit to a number which over your current upload file size.

If your hosting provider support is unresponsive or not so customer friendly then you can try and edit your .htaccess, wp-config.php or php.ini files under your WordPress root directory by adding the following directives.
Strong Warning: Make sure you keep a backup of any file you decide to any prior working on it.:

How to increase max upload limit and memory limit using .htaccess

(place the following code just under the line which says #END WordPress)

php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value memory_limit 256M

How to increase max upload limit and memory limit using wp-confing.php

(place the following code above the line which says /* That’s all, stop editing! Happy blogging. */)

@ini_set( 'upload_max_size' , '10M' );
@ini_set( 'post_max_size', '10M');
@ini_set( 'memory_limit', '256M' );

How to increase max upload limit and memory limit using php.ini

If nothing works then try and find or create php.ini under your WP root dir and add the following directives:

upload_max_filesize = 10M
post_max_size = 10M
memory_limit = 256M

Tip: if you find a php5.ini file instead of the php.ini one we strongly suggest considering changing hosts because your current one is using a PHP version which is not supported by WordPress.

Notice: Since the same warning appears when the issue related to your hosting memory limits we added in all of our examples the memory limit ruleset. If you don’t need it to make sure to delete it before saving any of the files you edited.

Looking for a WordPress Fix?

If you’re still having issues or you’re too busy working and don’t want to bother fixing this warning yourself you contact our WordPress Emergency Support Service and ask for a quote. We’ll get back at you right away with a price and delivery time.

Leave a Reply

Your email address will not be published. Required fields are marked *