wordpress Fatal error: Out of memory

I have set php memory limit from whm to 256M from WHM > PHP Configuration Editor.
Even so, my wordpress website and admin is showing me an error like below.

Fatal error: Out of memory (allocated 36175872) (tried to allocate 30720 bytes) in /home/XXXX/public_html/wp-includes/class-simplepie.php on line 14272
Fatal error: Out of memory (allocated 35127296) (tried to allocate 1966080 bytes) in /home/XXXX/public_html/wp-includes/class-simplepie.php on line 5427

I also tried to add following line to the top of wp-config.php, but no luck and same error.

Read More
define('WP_MEMORY_LIMIT', '128M');

can anyone suggest me or tell me what may be the solution?

Related posts

Leave a Reply

3 comments

  1. I finally think I’ve solved the White Screen of Death from PHP out of memory Fatal Errors.

    Full details here: http://www.isthisyourhomework.com/how-to-fix-the-wordpress-white-screen-of-death/

    If setting the WordPress and PHP memory limits doesn’t work for you, try adding/edditing the following line in either your Apache conf files. I didn’t have access to those, so I added the following line to the .htaccess file in my WP server’s document root:

    RLimitMEM max
    

    Many hosts have set limits on each user on shared-use servers. The above setting will unfetter your server and banish the WSOD.