From The Blog

WordPress Hack: Memory exhausted fatal error

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1966080 bytes)in /home2... .../wp-includes/class-simplepie.php on...

Fatal error: Allowed memory size of 33554432 bytes exhausted
(tried to allocate 1966080 bytes)in /home2...
.../wp-includes/class-simplepie.php on line 5353

Have you ever seen this error in your WordPress console and wondered what it’s all about?  It’s because WordPress doesn’t have enough memory allocated to it, and it’s really easy to fix.

What you need to do is go to your config.php file and add a single line of code just below your PHP statement:

So look for:

<?php

It’s at the top of the config.php file, you can’t miss it!

Then, drop down a line and add the following:

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

Save your config.php file and upload it again to your server, and you should find the problem is fixed.

What causes the error?  Well it’s simply that the server doesn’t have enough memory allocated to perform all the tasks required by wordpress.  It gets overloaded. 

Where can I find the config.php file? You can find the config.php file in the root of your WordPress directory

Tags: 


No comments yet.

Leave a Reply