Fatal error: Allowed memory size of 33554432 bytes exhausted

Modified on: 2014-11-04 16:55:58 -0600


If you arrive at your site and see an error message similar to the one below there are several simple fixes to resolve this.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 15552 bytes) in /home/mydomain/public_html/blog_wp/wp-includes/media.php on line 253



  1. If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 32M try 64M: memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)  
  2. If you don't have access to PHP.ini try adding this to an .htaccess file: php_value memory_limit 128M 
  3. Try adding this line to your wp-config.php file: Increasing memory allocated to PHP define('WP_MEMORY_LIMIT', '128M'); 
  4. Talk to your host.

Did you find it helpful? Yes No

Can you please tell us how we can improve this article?