• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

WP Thinker

The WordPress Playground

  • Snippets
  • Best
  • Guides
  • Reviews
Home / Guides

May 30, 2020 Muhammed Swalih

WordPress Memory Exhausted Error Fix – Increase PHP Memory Limit

wordpress-memory-exhausted-error-fix-increase-php-memory-limit

WordPress memory exhausted error is a common error which every WordPress beginner may have faced. This is not such a big problem, but a small one which can be fixed within minutes. There will be some default amount of memory allocated to the various sections in your web hosting account. The WordPress too have such limitations in the PHP files. Once we exhausted the allowed memory limit, it will show an error like below one

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

That is what you have faced now. This error normally occurs during the over plugin installation on the WordPress. Each and every plugin uses some amount of memory. When we installed a plugin which is at the point crossed the allowed memory limit, WordPress can’t overuse the memory than the set value. So, it shows the error. We can fix this by editing a wp-config.php which is located in the root WordPress directory in your hosting account.

To fix this, you must follow the steps below. If you carefully follow us, you will definitely find WordPress memory exhausted error Fix by increasing the PHP memory limit.

How to Increase PHP Memory Limit?

  1. Login to your Hosting account (Most Probably CPanel).
  2. Access the Web disk.
  3. Navigate to the root WordPress directory.
  4. Open wp-config.php which is located in the root WordPress directory.
  5. Add the following line inside the main PHP tag.

define('WP_MEMORY_LIMIT', '64M');
Now, you have increased the memory limit to 64M. Now check the WordPress again. If the problem still exists, contact your hosting provider and they will definitely help you with this issue.

Avatar for Muhammed Swalih

Muhammed Swalih

A WordPress expert who has been tweaking WordPress functions, plugins, themes and almost everything related to WordPress for the past 5+ years.

Primary Sidebar

Related Articles

Footer

WP Thinker is a website that publishes everything related to WordPress, Plugins, Themes, SEO, Blogging, etc.

  • Facebook
  • Twitter
  • Pinterest

Copyright © 2023 · WP Thinker

  • About Us
  • Advertise
  • Write for Us
  • Privacy Policy
  • Terms and Conditions
  • Contact Us
This website uses cookies to serve you better. By continuing to use this website, you agree to our cookie and Privacy Policy.