Fatal error: Allowed memory size of 33554432 bytes WordPress Error Solution

Hello Friends, Yesterday When I was working on my site in admin section I have seen errors on my wordpress dashboard in WordPress latest new section which was some memory size related problem and after that I was getting that same problem in mostly every plugin file when page loads. So i have tried to solve problem and search about it on internet and finally I got solution for this problem.

First I want to show you problem i was getting in my admin :

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in /hackingethics.com/wp-includes/class-simplepie.php on line 9906

Solution for this problem.

1. Open wp-settings.php in your root folder of your blog.

2. Try to find out below line :

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

3. Replace this line with line given below:

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

Refresh Page Voila!!, Your error solved. This change solved my error and i think it will also solve yours. Apart from this if you have any other solution than let me know by posting it in comment.

  • it's probably best to do that change in wp-config.php

    because when you update core files, wp-settings.php is possibly changed or overwritten.