How to Fix WordPress Memory Exhausted Error

How to Fix WordPress Memory Exhausted Error – We are sure that this error happened to most of us, and the likelihood is that you simply are reading this text because some same thing went on to you already.

After getting this error, don’t panic, and you should keep in mind that WordPress comes with advanced functionality that will help you efficiently resolve this issue, once and for all.

It so happens that your website and WordPress sets your memory size by default, and you would like to vary this, so on resolve this issue at the earliest.

You need to recollect that your website isn’t just down, but it sends a message to prospective customers that your website not be trusted to supply competitive solutions.

In other words, it’s in your interest to resolve this issue at the earliest, and WordPress makes it easy. So, if you were wondering “How to repair WordPress Memory Exhausted Error – Increase PHP Memory,” then you’ve come to a good place – just read on.

Remember that many steps may involve changing the theme core files, so it’s vital that you do an entire backup of your website before you start.

What is the WordPress Memory Exhausted Error?

WordPress is written in PHP, which may be a server-side programing language. Every website needs a Web hosting server for it to function correctly.

Web servers are a bit like other computers. They have the memory to run multiple applications at the same time efficiently. Server administrators allocate specific memory sizes to different applications, including PHP.

Once you set up your WordPress website, the WordPress server allocates your website with default memory space.

And once you run out of the allocated memory space, you always get a memory exhausted error.

When your WordPress website requires more memory than the default allocated memory, you get to ascertain this error is occure.

“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”.

How to Fix WordPress Memory Exhausted Error - Sitepoint

How to Fix WordPress Memory Exhausted Error – Sitepoint

By default, WordPress automatically tries to extend the PHP memory limit if it is less than 64MB. However, 64MB is usually not high enough.

Steps to Fix WordPress Memory Exhausted Error

Let’s see how to quickly increase the PHP memory limit in WordPress to avoid memory exhausted error.

Increase PHP Memory Limit in WordPress

First, you would like to edit the wp-config.php file on your WordPress site. It’s located in your WordPress website’s root folder, and you can use an FTP client, or web hosting control panel.

Then paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’

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

 

This code tells WordPress to extend the PHP memory limit to 256MB.

Once you’re done, save the changes and upload your wp-config.php file again to your web server.

You can now refresh your WordPress site and hopefully the memory exhausted error should disappear now.

Note: If this solution doesn’t work for you, then it’s mean that your web hosting service provider doesn’t allow WordPress to extend the PHP memory limit. You’ll get to ask your web hosting provider to extend your PHP memory limit manually.

Ask for Help

Suppose you are still unable to resolve the error or unable to increase the PHP memory limit in WordPress. We recommend you to contact your web server hosting provider and discuss the issue or hire a WordPress Expert who can help you solve this error at a reasonable cost price.   

How to Fix WordPress Memory Exhausted Error

Leave a Reply