Knowledge Essentials - 3Essentials Hosting

Wordpress error “Fatal Error: Allowed memory size of 33554432 bytes exhausted”

Article ID: 1760

 Back to Search


When attempting to acces the wp-admin login you may see the error “Fatal Error: Allowed memory size of 33554432 bytes exhausted”.

Plugins, scripts, images, all use memory on the site. Your PHP configuration may specify 8MB or 32MB typically. It may even specify 64MB, but depending on how you have setup your site, there are a few additional steps to take to keep this issue from occuring.

  1. Edit your wp-config.php file. You can access this file one of a couple different methods.
    1. You can FTP to the site, download the file, edit it locally, then upload it back to the site.
    2. You can edit the file directly using the File Manager in your CPanel or Plesk Control Panel

      The following should added near the top of the wp-config.php file:

      @ini_set('memory_limit','32M');

      Adding that line may resolve the issue. If it does not, proceed to the next steps. It is possible you may need to go to 64MB.
  2. We mentioned the PHP.INI (on some Windows/IIS server this may be named PHP-CGI-FCGI.INI. You may need to edit the memory_limit parameter specified in this file. Change the value either 32MB or 64MB. If 32MB does not work, try 64MB.

    memory_limit = 32M
  3. You may also want to edit your install.php file. This file can be found under wp-admin/. Add the followig to the beginning of the file:

    ini_set('memory_limit','32M');

    Again, you may need to change this to 64MB if your site requires it.

 
Downloads Associated With This Article
No downloads are currently associated with this article.