type="text/css" />

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 Jinnat Ul Hasan | 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:

  • fatal error: allowed memory size gravity forms
  • fatal error: allowed memory size of 33554432 bytes exhausted code charge
  • wordpress admin memory gravity forms
  • gravity forms fatal error: allowed memory size
  • Allowed memory + wordpress 3.2
  • memory "wordpress 3.2" 64m
  • Allowed memory + wordpress 3.2
  • memory "wordpress 3.2" 64m
  • fatal error: allowed memory size of 33554432 bytes exhausted + gravity forms
  • allowed+memory+size+wordpress+3.2

Previous post:

Next post: