Fix: WordPress Memory Exhausted Error – Increase PHP Memory limit
- Last Updated: Apr 6th, 2019
- Posted by: admin
- Category: How to Fix
At times you get an error message saying “Fatal error: Allowed memory size of …bytes exhausted…“, this is one of the most common WordPress error. It can be easily fixed by increasing the PHP memory limit in WordPress, follow up the given article with steps explained in detail.
Our WordPress support phone number +1-844-275-0975 is also available for help.
What is WordPress Memory Exhausted Error?
WordPress is written in PHP. PHP is a server-side programming language. Every website needs a WordPress hosting server for its proper functioning. Web servers are just like any other servers or computer, they need space or memory to run several applications at a time. Server administrator allocates the specified memory size to different PHP.
When your WordPress requires more memory by the default allocated memory you get to see this error.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx
So now let’s see how to easily increase PHP memory limit in WordPress to avoid memory exhausted error. By default, WordPress automatically increase the PHP memory limit if it is less than 64MB, though 64 MB is not high enough.
Increase PHP Memory Limit in WordPress
Next step, paste this code into a wp-config.php file just before the line that says ‘That’s all, stop editing!
define( ‘WP_MEMORY_LIMIT’, ‘512M’ )
Once you are done with this step, save your changes and upload your wp-config.php file back to your server. This code tells WordPress to increase the PHP memory limit to 512MB.
Now you can visit your WordPress site, memory exhausted error might have disappeared.
In case if this solution does not work for you, that means your web hosting service provider does not allow WordPress to increase PHP memory limit. You will have to ask your web hosting provider to increase your PHP memory limit manually.
We hope, by now you can now fix WordPress Memory Exhausted Error by increasing the PHP memory limit.
This article was brought to you by WpGlobalSupport. We have a team of well-qualified professional who can fix all your problem related to WordPress. For further assistance Dial our WordPress helpline: +1-844-275-0975
Read some other Blogs:
- How to Fix the 403 Forbidden error in WordPress
- WordPress Error: Cannot Modify Header Information
- Quick Fix: “Missing a Temporary Folder” Error in WordPress