Fatal error: Allowed memory exhausted

The error:

Fatal error: Allowed memory size of #### bytes exhausted (tried to allocate #### bytes) in /PATH_TO_WORDPRESS/wp-content/PATH_TO_PROBLEM/FILE.php on line ###

This error occurs when your server runs out of memory to complete the task at hand. Increasing the memory allotted or decreasing the number of tasks will fix the issue.

Hint: The plugin or theme causing the error is usually found after the /wp-content/ part of the error.
  1. Deactivate and remove plugins you no longer use may free up the right amount of memory needed to complete the tasks at hand.
  2. Reduce the number of tasks running at once or temporarily deactivate non-critical plugins.
  3. Add this line to your wp-config.php file:
    define('WP_MEMORY_LIMIT', '256M');
  4. Change this line in your server’s PHP.ini file:
    memory_limit = 256M;
  5. Add this to your .htaccess file:
    php_value memory_limit 256M 
  6. Contact your webhost for additional assistance with your server’s memory.