Okay so I decided to create this post because I recently had this issue with my wordpress site. I ran into an issue with my site when I tried to upload a media file that apparently was to large. After searching the internet for a remedy to my problem and trying all of these methods listed, I finally found the solution, so I decided to share all of these methods because one of them may work for you.

Having limited memory for media uploads can be frustrating. However like anything; there is a solution if you decide to look. The great thing is, none of these methods require any technical skills, they are pretty straight forward and easy to implement. I hope this article helps.

Method #1

To increase the WordPress allowed memory size for your website:

  1. Open wp-config.php, which by default is located in the root WordPress directory.
  2. Find the following line near the end of the file: /* That’s all, stop editing! Happy blogging. */
  3. Just above that line, add the following line: define(‘WP_MEMORY_LIMIT’, ’64M’);

Save your changes.

You can also increase memory to a higher number, and you can also increase the memory limit for admin tasks, as described in the WordPress codex.

If you’re still receiving the error after this fix, contact your web host provider or server administrator for their help.

Method #2

Increasing Your WordPress Memory Limit in php.ini

Open your wp-admin folder, and see if a file called php.ini or php5.ini is there. It likely won’t be, but double-click it if it is download the file to your computer, and open it.

Open a text editor on your computer if the file isn’t there.

If you are editing your php.ini or php5.ini file, find the line that contains memory_limit and an M value, and change it to this:

memory_limit 512M

If you are creating your own file, add this code to your text editor:

memory_limit 512M

Save the file, and name it php.ini, like so:

If you didn’t find the php.ini file, don’t worry! You can create it with a Right Click of your mouse and selecting Add New File. Open the new file and paste the three lines above and save it as php.ini.
Sometimes your server’s php.ini file is named as php5.ini, hence, don’t get confused between the two.

Method #3

Editing Your .htaccess File

If that addition to your php.ini file doesn’t do the trick, try editing your .htaccess file and add or edit the following code at the very bottom:

  • php_value upload_max_filesize 1000M
  • php_value post_max_size 2000M
  • php_value memory_limit 3000M
  • php_value max_execution_time 180
  • php_value max_input_time 180

Editing this code is similar to your php.ini file. Change the values to limits that best suit your needs. Don’t forget to save when you’re done and clear the cache for your browser.

Method #4

Increase Memory by Modifying a WordPress file

If the above two methods didn’t work for you, there is always an alternative. You can paste the following 3 lines within your WordPress files. These lines can be written in wp-config.php, themes functions.php file etc. However, this is not the recommended way to increase upload file size limit.

  • @ini_set( ‘upload_max_size’ , ’25MB’ );
  • @ini_set( ‘post_max_size’, ’27MB’);
  • @ini_set( ‘memory_limit’, ’30MB’ );

Method $5

Increase WordPress Memory with a Plugin

If you don’t want to do it manually, there is always a plugin in the WordPress repository. This is the method that worked for me. After trying all the above methods, I tried this one as a last resort and voila I increased my memory. You just need to find the right plugin that is compatible with your current WordPress version. Try using Increase Upload Max Filesize which is compatible with the latest version of WordPress.

From the left pane of your WordPress Dashboard, navigate to Plugins -> Add New, search for the Increase Upload Max Filesize plugin from the top right corner, and Install it.

Once the plugin is activated; navigate to its settings and enter the desired size for your new upload size.

Sooooo, That’s it! You have just increased the WordPress Maximum Upload File Size Limit.

If you know any other means to increase the file upload size limit, feel free to share it by using the comment section below.

0 Comments

Leave a reply

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

*

©2019 Allen Britt                                       Disclaimer | Refund Policy | Privacy Policy | Terms and Conditions | DMCA | Terms of Use | Site Policy | FAQ's

Log in with your credentials

Forgot your details?