When upgrading Wordpress, a error messages occured “Fatal error: Allowed memory size of 33554432 bytes exhausted…"

If you spend some time googling for the solution, you'll find out that this error happened when execution of a php file exceed allowed php memory on the server. In this case, the allowed php memory is 33554432 bytes (32 Mb).

The solution is increasing allowed php memory, and you'll do that by editing wp-config.php file, adding right after “<?php”:


This increased allowed php memory to 128 Mb.


  1. web solutions // 27 June 2011 at 13:27  

    I can use set_error_handler() to catch most PHP errors, but it doesn't work for fatal (E_ERROR) errors, such as calling a function that doesn't exist. Is there another way to catch these errors?

  2. Vcom Infotech Company // 26 April 2017 at 12:30  

    Wow, nice information. Thank you very much. Kovai e solutions | Best infotech company in coimbatore

Take a look on my other postings: