How to incrase WP Memory Limit

Solution for Fatal error: Allowed memory size of XXXXXXXX bytes exhausted.

WordPress Memory

Edit your wp-config.php file and enter something like:

define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '256M');

You can read more about this here.

PHP Memory

If you have access to your PHP.ini file, change the lines in PHP.ini
memory_limit = 256M ; Maximum amount of memory a script may consume (256MB)
ini_set('max_execution_time', 300); //300 seconds = 5 minutes

Incase, if you don’t have access to PHP.ini try adding this to an .htaccess file:
php_value memory_limit 256M
php_value max_execution_time 300

If this still doesn’t work or if you’re not confident about making these changes, you would need to talk to your hosting company.