Fix WordPress Fatal Error Allowed Memory Size Limit

Today is a quick tutorial on how to fix the error message: Fatal error: Allowed memory size of 67108864 bytes exhausted

Fix WordPress Fatal Error Allowed Memory Size Limit

If you’ve never seen this message, good, you’re hosting provider is good. I, however, have elected to go with free hosting at 000WebHost and while it’s a good free host, it is not a good host. Not to say I would hit these same barriers with a paid account.

Fix WordPress Fatal Error Allowed Memory Size Limit

To fix the Fatal error: Allowed memory size of error message all we’re going to do is add one line to our .htaccess file. Simple steps below:

  1. Access your site via FTP. Your CMS doesn’t work? Always go straight to your server. I like Filezilla as an FTP client.
  2. Log in to your site via your FTP credentials. Yes, these can be different than your CMS credentials.
  3. Navigate to your site’s root on the server where you’ll see a public_html folder. It may arrive here when you first log in.
  4. Double-click public_html
  5. Find a file named .htaccess. If you don’t see this file first click “server” in your top nav bar then “force showing hidden files.” If you found it skip step 6.
  6. No .htaccess file? open notepad or textedit and save your file to your desktop. Name it “htaccess.” Upload this file into your public_html file on your server. Click on this file and rename it “.htaccess” with not extension.
  7. Right click on your .htaccess file and click “View/Edit”
    Fix WordPress Fatal Error
  8. Add the following line without quotation marks anywhere in this file: “php_value memory_limit 128M”
  9. Save the file
  10. Return to Filezilla
  11. Click “Yes” on the “A file previously opened has been changed” message.

You’re done! You just fixed the annoying Fatal error: Allowed memory size of 67108864 bytes exhausted error!

Leave a Reply

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

*

*