How To Increase The PHP Memory Limit For WordPress

There’s a certain amount of memory that the server will attribute to each site which it hosts. You may need to set a higher memory limit for your WordPress site to avoid some of the most common errors. The default memory limit for WordPress is 32MB.

The most popular errors we’re talking about are looking something like:

Fatal error: Allowed memory size of xxxxxxxx bytes exhausted 
(tried to allocate xxxxxxxx bytes) 
in /site/public_html/wp-includes/plugin.php on line xxx

or

Fatal Error: Allowed Memory size of xxxxxxxx bytes exhausted ...
Change the Memory Limit in the wp-config.php file

Find and edit the wp-config.php file in WordPress and add the following line:

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

If the solution above won’t work in your case, then contacting the hosting company should solve it. Read more about increasing the PHP memory in the WordPress Codex.