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”:

ini_set("memory_limit","128M");

This increased allowed php memory to 128 Mb.

1 comments

  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?

Take a look on my other postings: