Skip to main content
Fixes

How to fix WordPress memory exhausted

By 09/05/2023May 17th, 2023No Comments

WordPress memory exhausted error

Greetings, lovely reader! Are you tired of encountering the dreaded “WordPress memory exhausted” error? Fear not, we are here to help you solve this issue once and for all!

Let’s dive right in and figure out what’s causing all the fuss. This error can pop up for a few reasons, such as having an insufficient amount of memory allocated in PHP, having plugins and themes that are hogging all the resources, using large images and media files, or running multiple WordPress sites on the same server.

Increase PHP memory limit in WordPress

Now, let’s talk about the solutions. It’s time to give your website a good old spring clean! First, you could try increasing the PHP memory limit in the wp-config.php file (code is below).

If that doesn’t do the trick, have a go at deactivating and removing plugins that may be causing the issue. Optimising your images and media files can also help free up resources. Upgrading your server to increase memory allocation is another option, or if all else fails, you could switch to a better hosting provider. Read more about web hosting.

The code to add to wp-config.php

Next, you need to paste this code in the wp-config.php file just before the line that says “That’s all, stop editing! Happy blogging”.

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

Avoiding the memory exhausted error

To avoid encountering the error in the future, it’s always good to keep an eye on your website’s memory usage and regularly check for updates on your plugins and themes. A caching plugin like NitroPack or Seraphinite Accelerator could really come in handy and try not to go overboard with installing too many plugins.

Conclusion

In conclusion, fixing the “WordPress memory exhausted” error is essential for a smooth and efficient website experience. By following these solutions and tips, you’ll be on your way to a happier and healthier website. Cheers!

Other WordPress fixes

Filter

wordpress fixes

How to speed up WordPress in 10 minutes

10 minute guide on how to speed up WordPress with only code and no plugins...
wordpress-fix-memory-full

How to fix WordPress memory exhausted

We show you how to resolve the WordPress memory limit error the right way...
wordpress fixes

How to add Canary Islands shipping to Woocommerce

Canary Islands is not included in WooCommerce shipping? Here is the fix...

Need a price for a new website instantly

Try our website cost calculator for free and get a price emailed to you.

Leave a Reply