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 ยป


DO YOU NEED OUR HELP?

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

Those who found this page were searching for:

  • thesis theme, fatal error: allowed memory size of 33554432 bytes exhausted
  • wp gravity form fatal error: allowed memory size of 33554432 bytes exhausted
  • how to handling "allowed memory exhausted"
  • gravity forms plugin fatal error: allowed memory size of 33554432 bytes exhausted
  • "gravity forms" "allowed memory size" exhausted
  • fatal error: allowed memory size gravity forms
  • Allowed memory + wordpress 3.2
  • wordpress allowed memory exhausted after move
  • gravity forms fatal error: allowed memory size of 33554432
  • Fatal error: Out of memory wprockers.com
  • 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: