Fix: WordPress Memory Exhausted Error – Increase PHP Memory limit

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-855-945-3219 is also available for help.

Read Also: Quick Fix: Pluggable.php File Error in WordPress

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

WordPress Memory Exhausted Error

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

First, you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder. You will have to use an FTP client in your web hosting control panel.

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-855-945-3219

Read some other Blogs:

Leave a Reply