We love wordpress, as it makes our live easier. But sometimes we face issues while setting up website. In this post I am going to talk about such error installing a new theme.
How problem generates:
When we try to install our theme via appearance -> themes -> add new, we get following message:
The link you followed has expired.
Cause of the problem:
Upload max size or maximum memory on our server are not well configured.
Solution of the problem:
We have to set Upload max size or maximum memory on our server as below:
memory_limit = 256
upload_max_size = 64M
post_max_size = 64M
upload_max_filesize = 64M
max_execution_time = 300
max_input_time = 1000
You can do that via contacting host company or you can do it yourselves by editing .htaccess file. Follow below steps to do that:
- Access your WordPress installation.
- In root directory, you will find your .htaccess file.
- Edit it to add below lines at the end:
php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 1000