Fatal error: Allowed memory size of 33554432 bytes exhausted While Upgrading WordPress11th Sep 2009 | Posted by reza | 27 Comments
While upgrading my wordpress version, few days ago, i received error messages that stating “Fatal error: Allowed memory size of 33554432 bytes exhausted…bla bla”.
After googling for the solution, i found out that this error happened when execution of a php file exceed allowed php memory on the server. In my case, the allowed php memory is 33554432 bytes (32 Mb).
Picture by : elliotcondon
The idea to solve the problem is increasing that allowed php memory. Google came with some solutions, but this was the solution i chose and it worked like charm:
Open wp-config.php file and added line
to the top of that wp-config.php file, right after “<?php” line(wp-config.php file could be found in the root installation folder, i.e. /public_html folder).
This increased allowed php memory to 128 Mb.
I re-tried upgrading my wordpress and the error messages gone. Thanks God.