Are you getting an allowed memory size exhausted error in your WordPress Website? This is the most common WordPress errors, and you can easily fix this by increasing the php memory limit in WordPress Config file. In this article, we will show you how to increase WordPress memory limit.
What is WordPress Memory Exhausted Error?
When your WordPress code requires extra memory than the server allocated memory, you get to see this error.
Fatal error: Allowed memory size of 11552252 bytes exhausted (tried to allocate 1542615 bytes) in /home/xxx/public_html/wp-includes/plugin.php on line xxx
Now we well introduced to Problem let’s look at solution. How to increase PHP memory limit in WordPress to avoid memory exhausted error.
Increase PHP Memory Limit in WordPress
Login to your server with FTP. Go to you website ROOT Directory. In public_html Edit the wp-config.php file on your WordPress site.
define( 'WP_MEMORY_LIMIT', '256M' );
Once you are done, save your changes and upload your wp-config.php file back to your server. Please refresh your page where you are getting memory exhausted error it should be disappear now.