2 Ways to Fix WordPress Memory limit Exhausted Error

Have You just saw an error on WordPress Memory Limit Used or WordPress Memory Exhausted Error?

Then Read ahead, I will Solve Your Memory limit Fatal Error Problem in 2 ways and that too within 2 minutes.

So have a Stopwatch 😀

Note: Basically this is not a coding error or anything like that. Instead it is just a temporary Problem usually due to a plugin, theme or other script exceeding the default allocated memory size limit. Don’t Worry You can solve it with much ease.

All You need to Increase WordPress Memory Limit in PHP from your End.

There are 2 Ways for it.

Increase WordPress Memory Limit in wpconfig.php file

Note: By default the PHP Memory limit is Set to either 64 MB or 128MB (I had by default 128M fixed on my wpconfig.php file)

To increase the PHP Memory limit in wpconfig.php file, you need to access your webhosting files.

  • Save

It can be accessed either through FTP client or directly through Root Directory in File Manager.

I had done through directly through File Manager, You can do it in whatever way it is confortable to you.

  1. Under public_html folder,
  2. Open WordPress Root Directory.
  3. Thereafter wp-config.php file
  4. Search for WP_MEMORY_LIMIT
  5. Change the Limit from “64M” or “128M” to “256M”
  6. Or either Paste this code define('WP_MEMORY_LIMIT', '256M');

Increase PHP Memory limit
  • Save

Increase WordPress Memory Limit in cPanel

This method is much simpler than the first one.

All you need to have a cPanel first.

Note: Every Webhost does not offer cPanel. So before choosing a web host, must assure that it have a cPanel. I am using Siteground and it has a cPanel.

cPanel Select the PHP version
  • Save
  1. Go to cPanel
  2. Search Software Section
  3. Click the “Select PHP Version”
  4. Click the Options Tab
  5. Go Down to “Memory_Limit
  6. Increase Memory limit to “256M”

Wordpress Memory limit php  option
  • Save

Here You go! Once You have done this.

You will see your website Running well.

If still it does not fixed up yet. Then surely it will be a problem from your web host’s end.

Contact the Customer Care Support.

If I fixed Your WordPress Memory exhausted error. Then instead of thanking me, Share this post on your Social Media account. Pin the Pictures to your Pinterest.

Subscribe t0 Blogveda for more such Solutions.

Affiliate Disclosure

The post contains some affiliate links. See my disclosure about affilate link here.

About Ashish Gupta 14 Articles
Loves - Blogging, Coding, Web Development or Anything Innovative. Hobbies - Playing Cricket, Football, Badminton, Table Tennis (He is Basically a Playing Freak), Writing Poems, Reading Fictions, Experimental Cooking. Best Lines - Every Problem comes with a Solution. Here for - WordPress and SEO Solutions (Had Worked on 10+ websites) Achievements - Nothing at all 😂

Be the first to comment

Leave a Reply

Your email address will not be published.


*