Recently, we got a message like “Allowed memory size of xxxxxxxx bytes exhausted” on Internet Techies sitemap page (where xxxxxxxx was some big number, oops I don’t remember!!) . We found out that this error was due to the fact that our PHP code generated for that page was crossing the allocated memory limit on the server.
This error can be overcome by using the WP_MEMORY_LIMIT option in wp-config.php file. You can get your wordpress installation’s wp-config.php file in your installation’s root folder.
Open wp-config.php file in any text editor you use to edit html or php, and go to the end of the file.
The value 64M in the above code is the memory limit that WordPress has allocated to PHP. By default, WordPress keeps the memory limit to 32M. But if the PHP code for a certain page needs more memory than the default, then, we have to increase the memory limit by using the WP_MEMORY_LIMIT option in wp-config.php
Save the modified wp-config.php file to the WordPress installation’s root folder. And now try to open the page showing the error, if the error has gone, well good! If not, then try increasing the memory limit to 96M and so on.
64M worked for us!