How to Increase the WordPress Allowed Memory Size

The default memory limit for WordPress is 32 MB. It is very common to exceed this limit and get the error Fatal error: Allowed memory size. The fatal error message looks similar to this one:

Fatal error: Allowed memory size of 23556632 bytes exhausted (tried to allocate 3349917 bytes) in /home/xxxxx/public_html/wp-includes/plugin.php on line xxx

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:
    define( 'WP_DEBUG', false );<br>
  3. Just below that line, add the following line:
    define('WP_MEMORY_LIMIT', '64M');

Save your changes. If you’re still receiving the error after this fix, contact our Support Team.


Last updated on Jan 30, 2017