The link you followed has expired – WordPress Error

Yesterday, I installed WordPress on my new domain techtreble.com. The installation went smoothly without any problems. Later I decided to install a new theme on my blog by uploading the .zip file from my computer. The file uploaded successfully, but at the time of installation, I got an error like this – The link you followed has expired. Below is the screenshot of the error.

the link you followed has expired

Error message – the link you followed has expired

I tried many times, but every time, I was unable to install the theme. After searching the Internet for possible causes, I found that the problem is due to some misconfiguration of PHP settings on the web host. If you are also facing this problem while trying to install a new theme for your WordPress Blog, then keep reading.

WordPress shows this error when someone is trying to install a theme of size more than 2 MB. By default, for most web hosts, the maximum upload file size is 2 MB. If you try to install a theme of size more than 2 MB, the WordPress shows the error – The link you followed has expired. Please try again. This is somewhat weird because one can never think that this error has something to do with the maximum upload size.

The link you followed has expired – Solution

You can get rid of this error either by changing the PHP settings in the Cpanel or by modifying the php.ini file. I will suggest the former method as it doesn’t involve the risk of messing up with your necessary system data.

  • Log in to your Cpanel and look for the Select PHP version option. This option is usually found under the Software menu. Click it, and PHP Selector page will open. Most probably, you will see 5.6 (native) PHP version as the currently selected version.
the link you followed has expired wordpress

Selecting PHP version

the link you followed has expired wordpress theme

The Current PHP version

  • From the dropdown list, select either 7.1 or 7.2. Wait for the advanced options to show up. On the top-right corner, click the Switch to PHP Options link. Again select the PHP version 7.1 or 7.2 from the drop-down if required.
Switching to PHP options

cannot install theme the link you followed has expired WordPress

  • Make the following changes and hit the save button.

upload_max_filesize = 64M

post_max_size = 64M

max_execution_time = 300

cannot upload wordpress theme

Making required changes

wordpress the link you followed has expired

After making the changes

  • Not forget to click the Set as current button after making the above changes.

To make sure the new settings have been applied, check the currently selected PHP version again. Now, try to install theme after refreshing the WordPress admin area and this time it should install successfully.

Alternatively, you can also make the changes mentioned above in the php.ini file to make it work. But make sure to create the backup of the file first, so that you can revert changes if anything goes wrong.

If this works for you, let me know by dropping a comment below.

32 Comments

  1. Scrapper

    not working tried all still problem is there

  2. Boldarg

    I’m sorry, it does not work

  3. Juan Jo

    Work great. Thanks

    • Amar Pawar

      you’re welcome. Thanks for dropping comment

  4. Philip

    Works….thanks

  5. Gift

    it work perfectly sir….thanks. You were the only one that could give me a solution to this problem

    • Amar Pawar

      you’re welcome

  6. Barry

    Thank you- this worked perfectly!

    • Amar Pawar

      I am Glad it worked for you…

  7. Billy

    Hi I have tried both solutions and they don’t work. I have spent hours searching on the internet for help but can find anything.

  8. Mark Main

    I made the changes using the “MultiPHP INI Editor” in the cPanel; I made the changes in both my “Home Directory” and also within the directory that contained my domain name that I’m installing this into. Be sure to click on the Apply button. It worked great, thank you for writing this up.

  9. Usmanzeb

    php version is not changing . . . .. tried alot

  10. Samara Barnett

    Thank you so much! I watched so many YouTube videos and this was the only solution that worked! I had many failed attempts before coming across this post very helpful.

  11. Akash Jejurkar

    I have spend my 2-3 days for solving these problem. I was in so stress Thank you so much sr. for solution
    Greate job.

  12. Troy

    Amazing. Thank you.

  13. Keza

    thank you save me

  14. paul

    This worked a treat,,, You are a fckinf legend

  15. Kuldeep Patel

    Thank you , you saved my day buddy

  16. love

    OMG, it’s working!! Thank you so much! <3 your have save my life.

  17. lauretta

    THANK YOU!! This was the best and most simplest explanation. So glad I followed this first before messing with these files. This was causing various problems on plugins and themes.

  18. Anuj

    worked worked bro it really worked

  19. Leb

    That worked, thank you much.

  20. Yousuf

    nothing happened 🙁

  21. Yousuf

    I tried this in “MultiPHP INI Editor” and it worked. Thanks Mate.

  22. Joe

    Thanks so much, it worked.

  23. Efosa Odigie

    Thanks a million. This is the best solution i have gotten so far. It really did worked for me

  24. Shayne

    This worked perfectly! Thank-you 🙂

    • Amar Pawar

      I am happy it worked for you

  25. Yoga

    Super Works

  26. Mary Ann

    It worked – you are awesome! Thank you for taking the time to post this 🙂

  27. Deb

    THANK YOU SO MUCH!!!!!!!!!!!!! THIS WAS SUPER HELPFUL!!!!!!!!!!!!!!!

  28. Wilson

    There are different solutions to this problem. One of my simplest solutions step by step:
    1. Login to http://www.your_web_site_name/cpanel
    2. Scroll down to ‘SOFTWARE’ section
    3. Click on ‘MultiPHP INI Editor’
    4. Under Basic Mode, select your site’s name from the dropdown list (Not Home)
    5. Scroll to the bottom and set ‘max_execution_time’ to 300M
    6. Set ‘post_max_size’ to 64M
    7. Set ‘upload_max_filesize’ to 100M
    8. Click ‘Apply’
    9. Retry upload again and you should be fine. If not try the other methods above.

Leave a reply