1. Increase the memory limit setting in php.ini e.g. (memory_limit = 64M ;). Many hosts may not allow this.
2. Increase the memory limit via .htaccess e.g. (php_value memory_limit 64M). Many hosts may not allow this.
3. Increase the memory limit via wp-config.php .Put the below code right before the 'stop editing' comment
ini_set('memory_limit','64M');