Okay
  Print

Fatal error: Allowed memory size of xxx bytes exhausted

When attempting to install a theme on WordPress for the first time or when you navigate to customize the theme, you may experience an error message stating:

Fatal error: Allowed memory size of xxx bytes exhausted

The reason why this error shows up is because you exceed your default Memory Limit. Here's the simplest way to fix it.

First open your wp-config.php which is located in the root WordPress directory. Then add the following line inside the main php tag:

define('WP_MEMORY_LIMIT', '64M');

We just increased the memory limit to 64M. If you still get the error after this fix, then please contact your host. Most likely, they would have to go in their php.ini file to increase the memory limit for you.