How to Fix a WordPress “Fatal error: Allowed memory size of 33554432 bytes exhausted” Error

This has happened to me so many times on all of my wordpress sites, that I figured it was time to tell you how easy it is to fix.

The error message reads something like this:

Fatal error: Allowed memory size of 33554432 bytes exhausted

Now your site is all messed up and won’t work.   Here’s what you want to do.  Go into your main wordpress folder in your file manager.  Scroll down until you get to a file called

wp-settings.php

Open it in an editor (bluehost has one built in which is fine for this purpose).

You’ll see the following line of code:

if ( !defined(‘WP_MEMORY_LIMIT’) )
define(‘WP_MEMORY_LIMIT’, ‘32M‘);

Notice I bolded the 32M.  Change that number to 64.  Click save.  Done.  Your site should work fine.

Now you can get back to blogging about what you care about, which for me is fitness.

 

New Graphic

Related Articles:

Leave a Reply

*

CommentLuv badge

Switch to our mobile site