Fatal error in WordPress, “Allowed memory size of X bytes exhausted”

Solution:

The problem is your installation is requiring more memory than you have available for your site. If you are using a shared hosting environment, you might be at a loss in increasing your memory allotment.

Try updating your wp-config file:

define('WP_MEMORY_LIMIT', '256MB');

If you can change your PHP.ini file you can adjust this:

php_value memory_limit 256MB

Your host seems to have this set incredibly low if it’s giving you a memory error at 50MB.