Solution for Fatal error: Allowed memory size of XXXXXXXX bytes exhausted.
WordPress Memory
Edit your wp-config.php file and enter something like:
[pastacode lang=”php” manual=”define(‘WP_MEMORY_LIMIT’%2C%20’256M’)%3B%0Adefine(‘WP_MAX_MEMORY_LIMIT’%2C%20’256M’)%3B” message=”” highlight=”” provider=”manual”/]
You can read more about this here.
PHP Memory
If you have access to your PHP.ini file, change the lines in PHP.ini
[pastacode lang=”php” manual=”memory_limit%20%3D%20256M%20%3B%20Maximum%20amount%20of%20memory%20a%20script%20may%20consume%20(256MB)%0Aini_set(‘max_execution_time’%2C%20300)%3B%20%2F%2F300%20seconds%20%3D%205%20minutes” message=”” highlight=”” provider=”manual”/]
Incase, if you don’t have access to PHP.ini try adding this to an .htaccess file:
[pastacode lang=”php” manual=”php_value%20memory_limit%20256M%0Aphp_value%20max_execution_time%20300″ message=”” highlight=”” provider=”manual”/]
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.