Fix: WordPress Memory Exhausted Error – Increase PHP Memory

First open your wp-config.php which is located in the root WordPress directory. Then add the following line inside the main php tag:

1 define('WP_MEMORY_LIMIT', '64M');

We just increased the memory limit to 64M. If you still get the error after this fix, then please contact your host. Most likely, they would have to go in their php.ini file to increase the memory limit for you. If you have other ways of increasing the memory limit, then let us know in the comments below.

Share this Story:
  • facebook
  • twitter
  • gplus

Leave a Reply