Connect with us

How to Fix Memory Exhausted Error in WordPress?


How to Fix Memory Exhausted Error in WordPress?

While working on WordPress website, the Fatal Error occurrence is one of the WordPress common issues. Every WordPress user may experience this “Allowed Memory Size Exhausted Error” at least once. In this article, we will show you how to Fix WordPress Memory Size Exhausted Error easily.

Fixing “Memory Exhausted Error” in WordPress

The Memory Size Exhausted Error is one of the common errors in WordPress Site. When this error occurs, the visitors can frustrated and quit from your WordPress website quickly. This will make your website ranking down. So, you need to know how to resolve this Memory Exhausted Error on your WordPress site. Here you can find the easy ways to fix the “Fatal Error: allowed memory size” in WordPress site.

What is Memory Exhausted Error ?

The Memory Limit can exceed because of WordPress plugins and WordPress themes you installed on your WordPress site. When you exceed the default Memory Limit of your WordPress Site, this “Fatal Error: Allowed memory size” will raise. The Fatal Error: Allowed memory size of WordPress site is also called as Memory Exhausted Error.

How to Fix WordPress Memory Exhausted Error ?

If you get this error in your WordPress site then you need to increase the PHP Memory limit. There 2 ways to increase the memory limit in PHP. Those are

  1. Increase PHP Memory Limit with admin access.
  2. Increase PHP Memory Limit without admin access.

Increasing of Memory Limit with admin access is easy when compared to without admin access.

Because of the Fatal Error, your WordPress site does not work properly but it gives you the access to your admin area. In that case, you have to follow the given process and resolve your Memory Exhausted Error.

Edit ‘wp-config.php’ File

  • First, you have to login to your WordPress website admin area.
  • The WordPress dashboard of your site will appear on the screen.
  • In the screen left side navigation bar, the Appearance link is available.
  • Click on the Editor option from the Appearance tab.
define('WP_MEMORY_LIMIT', '64M');

Sometimes you may lose access to your WordPress admin area because of the Memory Size Exhausted Error. To overcome this error, you have to access your website through FTP. It is difficult for the beginners when compared to experienced ones. Don,t worry about it. Have a look on the given process. Here we described the possible ways to fix Fatal Error in your WordPress website.

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

This is one of the easy ways to resolve this “Fatal Error: allowed memory size” from your WordPress Site.

Edit ‘php.ini’ File

First, you have to check your WordPress site has the php.ini file access or not. If you have the access to your WordPress php.ini file then follow the with access process. Else, you have to follow the second process to fix this error.

With php.ini file access

memory_limit = 64M;

Without php.ini file access

memory_limit = 64M;
Edit ‘.htaccess’ File

This is one of the easy methods to resolve Memory Exhausted Error in your WordPress Site without admin access. Follow the steps and get out from the Fatal Error.

  • First, you have to Open wp-includes folder of your WordPress.
  • Now, Click on the Server tab from the menu.
  • The menu will display with various options.
  • Choose Force Showing Hidden Files option from it. Actually, the FTP Program hides the Dotfiles. The .htaccess is one Dotfile.
  • Now, you have to search for the .htaccess file.
  • Next, Download the .htaccess file.
  • Open the file with text editor and Add the given code to it.
php_value memory_limit 64M;

We hope this article will guide you to fix “Fatal Error: allowed memory size” in WordPress site. Stay connected with us to get Better guidance on WordPress.

Continue Reading
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in solution

    About Me:

    Szabi Kisded

    Hey there, I'm Szabi. At 30 years old, I quit my IT job and started my own business and became a full time WordPress plugin developer, blogger and stay-at-home dad. Here I'm documenting my journey earning an online (semi)passive income. Read more

    Sign up for my newsletter and get the YouTube Caption Scraper WordPress plugin for free
    (worth 29$)!

    All My Plugins In A Bundle:

    My AutoBlogging Plugins:

    My Online Courses:

    A Theme I Recommend:

    Featured Posts:

    To Top