Okay
  Public Ticket #2627482
installation
Closed

Comments

  •  2
    Jessica started the conversation

    I'm trying to install the purchased Amelia file. It downloaded on my Mac as a file folder. Then I compressed it and tried to go via the dashboard, plugin, upload, but it says "The uploaded file exceeds the upload_max_filesize directive in php.ini." Can you help me? 

  • [deleted] replied

    Hello,

    I will provide a step-by-step guide, making this as easy as possible. Follow along and make sure you complete all the steps for the method you are attempting. Try the methods one at a time.

    If a method doesn’t work, you will need to undo what you did before trying a new method. This is important to make sure your website continues working smoothly.

    Method 1: Change the functions.php file

    The functions.php file is a core file for WordPress sites. Do remember that the file is linked to the theme you use. So, if you change your theme later, you’ll need to repeat this method to increase the upload size.

    It’s a simple file to edit but if you’re considering a new theme, try a different method. Solve the ‘link you followed has expired’ error with the following steps.

    Steps

    • Find the php file (either via FTP or inside your Admin dashboard at Appearance > Theme Editor)
    • Paste this code into it:
    @ini_set( 'upload_max_size' , '100M' );
    @ini_set( 'post_max_size', '100M');
    @ini_set( 'max_execution_time', '300' );
    • Change upload_max_size and post_max_size in the above to the size required
    • Look at the max_execution_time and change it if it’s not long enough
    • Save changes
    • Check if the error still occurs

    It might be tempting to make these limits massive but be careful as hackers can use this against you. If the timeout value is really high and they get into your website, they could run all sorts of dangerous, long-running scripts. In other cases, a bug might cause a script to take abnormally long to process, which can slow your site down to a standstill.

    Method 2: Increase limits in the .htaccess file

    It’s also possible to change the .htaccess file to solve your issue.

    Here are the steps:

    • Find the.htaccess file (usually hidden in the root directory of your WordPress installation)
    • At the bottom, add this code:
    php_value upload_max_filesize 128M
    php_value post_max_size 128M
    php_value max_execution_time 300
    php_value max_input_time 300
    • Save the file
    • Check if the issue is resolved

    Method 3: Edit the php.ini file

    If you can’t find the functions.php or .htaccess files or don’t like to edit them, there’s another method. To solve the issue of “the link you followed has expired”message, you can edit the php.ini file, which contains settings for your server’s implementation of PHP.

    Some shared website hosting companies don’t give access to the file, which may be a roadblock for you. If that’s the case for you, it’s best to contact your hosting provider directly.

    If you’re sure you have access, you can perform the following steps:

    • Access the ini file using anFTP program
    • Create a backup copy before editing
    • Open the file and search for the following lines which are scattered throughout the file:
    memory_limit
    upload_max_filesize
    upload_max_size
    max_input_time
    post_max_size
    max_execution_time
    • Preferably, edit them to the following values:
    memory_limit = 256M
    upload_max_filesize = 64M
    upload_max_size = 64M
    max_input_time = 1000
    post_max_size = 64M
    max_execution_time = 300

    Method 4: Contact your hosting provider

    You can always contact your host provider to change these settings. They’ll likely ask for a screenshot of the ‘the link you followed has expired’ message so ensure you take one when it happens. If you didn’t, you can recreate the error to get a screenshot.

    You could also choose to send them an email explaining the issue. Request that they increase the limits of the following:

    memory_limit
    upload_max_size
    post_max_size
    upload_max_filesize
    max_execution_time
    max_input_time

    Try again to see if your file will now upload.


  •  2
    Jessica replied

    Thank you! Now it worked.