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:

  • wordpress weaver Fatal error: Allowed memory size
  • gravity forms fatal error: allowed memory size of 33554432
  • memory "wordpress 3.2" 64m
  • wordpress fatal error after moving
  • allowed+memory+size+wordpress+3.2
  • wp gravity form fatal error: allowed memory size of 33554432 bytes exhausted
  • thesis Fatal error: Allowed memory size of bytes exhausted
  • memory "wordpress 3.2" 64m
  • "gravity forms" "allowed memory size" exhausted
  • “allowed memory exhausted” no wordpress?
  • 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: