Fix: WordPress Memory Exhausted Error – Increase PHP Memory limit

Fix: WordPress Memory Exhausted Error – Increase PHP Memory limit

Are you getting an error message something like this? Fatal error: Allowed memory size of … bytes exhausted…..” If yes, you have arrived the right place to get the real solution. This is the one of the most common Wordpress error.

You can easily fix it by increasing the PHP memory limit in WordPress. In this article, we will show you how to that. Our WordPress support phone number +1 888 614 0555 is also available for needed help.

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

What is WordPress Memory Exhausted Error?

PHP is a server-side programming language. WordPress is written in PHP. Every website needs a WordPress hosting server for its functioning properly. Web servers are just like any other servers or like any other 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 require 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 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. 64 MB is not high enough.

Increase PHP Memory Limit in WordPress

Firstly 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 need to use an FTP client in your web hosting control panel.

Next step, you need to 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, you need to 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 our WordPress site memory exhausted error maybe disappear.

In case if this solution does not work for you, then this 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, 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 888 614 0555

Read some other Blogs:

Leave a Reply