Fatal Error Due To File Upload Memory Limit

Every web hosting service has their own upload memory limit. A fatal error is caused during the upload of a file if it is greater than your upload limit. At first, you need to know the upload limit of your hosting, then you can resolve this issue in following three ways:

1- Edit PHP.ini:

To resolve this issue, you need to find the PHP.ini file in the Home Directory of your website and then find the following line:
memory_limit = 64M

Replace 64M with your desired amount of File sizes like 128M, 256M etc. Your issue will resolve.

2- Edit .htaccess file:

You need to find .htaccess file of your website. Find out the following line  in your .htaccess file:
php_value memory_limit 64M

You can replace the memory limit with your desired one from 64M to any other amount.

3- Edit wp-config.php file:

To change the value of memory limit from wp-config.php file, add the following line to your wp-config.php file:

define(‘WP_MEMORY_LIMIT’, ’64M’);

Don’t forget to replace the ‘64M’ which is the default value with 128M or 256M.

If the issue still persists, then you need to contact your host. They will then assist you in resolving your issue.

User Comments

Leave a Reply

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

    Get in Touch