How to fix “Allowed Memory Exhausted Error” in WordPress?

While upgrading WordPress to the latest version or installing a new plugin, “Allowed Memory Exhausted Error” is a common error. In the error message, it says "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1966080 bytes) in /hosting-path/wp-includes/file-name.php on line 5353".

If it happens, here is a simple fix:

  • Log in to your hosting file system using any FTP software.
  • Download wp-config.php file from home directory.
  • Open the file using any PHP Editor.
  • Write down the following line of code just imidiately after 1st line. Usually first line should have <? on the file.
  • 1
    define('WP_MEMORY_LIMIT', '64M');
  • Save and Close the file.
  • Upload and overwrite the existing file.

This piece of code will increase the memory allocated by PHP and allow WordPress to handle large files to execute.

By | On Thursday, September 23rd, 2010 | Under How To's | 1 Comment ยป


Contact our experts, most of the time we assist our readers free of charge.

Those who found this page were searching for:

  • how to handling "allowed memory exhausted"
  • wordpress fatal error after moving
  • wordpress weaver Fatal error: Allowed memory size
  • "Fatal error: Allowed memory size of 33554432 bytes exhausted" gravity forms
  • memory exhausted wordpress
  • error wordpress Allowed memory 3.2
  • memory exausted wordpress 2011
  • wordpress admin memory gravity forms
  • fatal error: allowed memory size gravity forms
  • Allowed memory + wordpress 3.2
  • Sorry about that.. posted on wrong post.

    Is there any other options besides this simple fix? It just seems that my hosting company just ignores it.

Previous post:

Next post: