The uploaded file exceeds the upload_max_filesize directive in php.ini error is mainly related to WordPress and it occurs due to the limitations that are associated with it. These limitations are related to the type of content and the size we use. The content involves pictures. Images, large files, applying themes, etc. trying to access larger files will result in this error to show up on our screens. However, it is to be noted that the content has less to contribute to the error when compared to the turbulence in our server platform settings.
However, do not worry much since the issue is not as grand as it might seem, this type of error is easily fixed. Here is how;
- Update your php.ini file: Every server has its own set of limitations for the size of the content, in order to increase that according to yourself, you need to sign in your hosting platform and open cPanel, then in Files manager and in the Directory section, choose “Document Root for” while making sure the ‘view hidden files’ column is selected already. After this, go to the wp-admin find your php.ini file and make the desired changes. Save! You can visit errorcodeguru.com for details of the changes needed.
- Update your .htaccess file: if the above-mentioned method fails to work, this is what you can do. Follow the same above mentioned steps to the point where you enter the wp-admin and instead of finding the php.ini file, find yourselves a .htaccess file and make the desired changes.
- Editing your wp-config.php File: yet another way to carry out this method is to fix up the wp-config.php file. Follow the same steps as the previous two methods till selecting the “Document Root for” and then to the bottom of the wp-config.php, add “ define(‘WP_MEMORY_LIMIT’, ‘256M’);\ “
- Reach out to Web Host Support: probably the one thing that is left to fix the yet unresolved issue is to approach professional help. You need to contact you’re your web host support group and explain to them in detail the issues that you are dealing with currently, do not forget to mention the exact procedures you undertook in order to try and fix the issue on your own so that they can get a better understanding of what you are dealing with. The team will then help you articulate the issue and devise the proper procedure.