WordPress Fatal Error 'Allowed memory size of 33554432 bytes exhausted'

If your running a self-hosted WordPress blog, chances are you may have encountered a blank screen or the infamous "Fatal error: Allowed memory size of 33554432 bytes exhausted." There're few things you can do before asking for assistance. Try any of the following method depending entirely on your server configuration.Note: 1. Most hosting providers closely […]

Share online:

If your running a self-hosted WordPress blog, chances are you may have encountered a blank screen or the infamous "Fatal error: Allowed memory size of 33554432 bytes exhausted." There're few things you can do before asking for assistance. Try any of the following method depending entirely on your server configuration.

Note: 1. Most hosting providers closely monitor memory overrides and don't take too kindly to frequent use. 2. And, that most hosting providers allocate 32 MB to PHP under each account, and allow users to temporarily increase memory allocation.

If neither of these work, it's time to ask your hosting provider to temporarily increase PHP's memory allocation on your account.

  1. If you can edit system php.ini file, increase the memory limit there; memory_limit = 256M
  2. Or, WordPress 2.9.2 or lower, add define('WP_MEMORY_LIMIT', '256M') to your wp-config.php file. For, WordPress 3.0+ , WordPress automatically does this for a variety of tasks for you.
  3. Or, add php_value memory_limit 256M to your .htaccess file.

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.