9.7 C
London
Monday, April 22, 2024

WordPress Memory Exhausted Error – Increase PHP Memory

Date:

Related stories

WHO hosts the first forum on traditional medicine

The World Health Organization will convene its first summit...

Despite profit-taking, the price of oil still records a weekly rise

As the dollar rose and oil speculators took profits...

Kenya bans churches after allegations of killing worshipers who were starved

According to a government document made public on Friday,...

Have you been getting a WordPress error that says “Permitted Memory Size Exhausted”? This is one of the most common WordPress errors, and it’s simple to fix by increasing WordPress’s php memory limit. In this article, we’ll show you how to increase PHP memory to fix the WordPress memory exhausted error.

What is the meaning of the WordPress Memory Exhausted Error?

PHP is a server-side programming language, and WordPress is written in it. For a website to function properly, it requires a WordPress hosting server.

Web servers operate in the same way as any other computer. They require memory to run multiple applications efficiently at the same time. Different applications, including PHP, are allotted different amounts of memory by server administrators.

Read Also  How to Remove the Powered by WordPress Footer Links

This error appears when your WordPress code requires more memory than the default allocated memory.

If the PHP memory limit is less than 64MB, WordPress will try to increase it by default. However, 64MB is frequently insufficient.

After that, let’s look at how to increase PHP memory limit in WordPress to avoid the memory exhausted error.

To increase the PHP memory limit in WordPress

Go to your WordPress site’s wp-config.php file and make the necessary changes. It’s in the root folder of your WordPress site, and you’ll need to use an FTP client or your web hosting control panel’s file manager to access it.

Read Also  Should You Choose a New Domain Extension for Your Website?

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

  1. if ( ‘WP MEMORY LIMIT’, ‘256M’ );

This code tells WordPress that the PHP memory limit should be increased to 256MB.

When you’re finished, save your changes and re-upload your wp-config.php file to your server.

You should now be able to access your WordPress site, and the memory exhausted error should be gone.

Note: If this solution doesn’t work for you, it’s because your web hosting provider won’t let you increase the PHP memory limit. You’ll have to manually request that your web hosting provider increase your PHP memory limit.

Read Also  Six Best WordPress Newsletter Plugins

That’s all there is to it; we hope this article assisted you in resolving the WordPress memory exhausted error by increasing the PHP memory limit. You might also be interested in our step-by-step beginner’s guide to WordPress error troubleshooting.

Oh hi there 👋
It’s nice to meet you.

Sign up to receive awesome & exclusive content in your inbox, every week.

We don’t spam! Read our privacy policy for more info.

Your Blog Master
Your Blog Masterhttp://yourblogmaster.com
Your Blog Master is more than just a blog; it’s a community of like-minded individuals passionate about technology. Join us in discussions, share your insights, and learn from others.

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

We don’t spam! Read our privacy policy for more info.

Latest stories