Question

I keep getting this error: "The link you followed has expired." when I try to install a theme in my WordPress instance

Posted December 13, 2019 229 views
WordPress

This WordPress theme that I am trying to install has both a parent and a child theme. the parent them is 24 MB. I keep getting this error that “The link you followed has expired.” when I go to install the theme. I wasn’t sure if there was a way to FTP/SSH into my account - I tried setting it up so that it would use SSH, but the console keeps asking me to login.

Help! I’m guessing this is a memory limit issue, I’m just too new to DigitalOcean to know how to fix this myself.

Thanks,
Mark

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello, @markec81cec0066da9a7237711

This is most likely related with the maximum upload file size value. Can you confirm which is the current value set on your end? You should see the value listed on the upload page in the WordPress admin area bellow the Upload New Media window.

You can either increase the limit via php.ini file , the .htaccess or via the functions.php file

  1. Via php.ini
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300
  1. Via the theme’s functions.php
@ini_set( 'upload_max_size' , '120M' );
@ini_set( 'post_max_size', '120M');
@ini_set( 'max_execution_time', '300' );
  1. Via .htaccess
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 300
php_value max_input_time 300

The .htaccess file method is less used and I’ll recommend you to try the first two methods.

Let me know if you have any questions.

Regards,
Alex

Submit an Answer