Scroll Top

Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in wp-admin/includes/update.php on line 49

We experienced some sort of strange error last night when we were updating our site. Suddenly we go the following error after logging in to the admin section;

Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /wp-admin/includes/update.php on line 49

After going through the files and the database, we could not find anything that we had changed to cause this. So we just did the following;

Create a php.ini file in editpage or wordpad or whatever.

Place the line “memory_limit = 128M  ; Maximum amount of memory a script may consume (128MB)” at the top

Upload the php.ini file to wp-admin

Done.

We still cant work out why that happened, and it seems there were few other people that experienced it. Anyway, it looks like it is all work now anyway, as you can see, we are posting away fine.

Comments (4)

Thank you. This is a great information, I could not find anything that I had changed to cause this.

Well, here is also a very simple solution to this problem. Open the wp-config.php file and place this line just before the last line:

define(‘WP_MEMORY_LIMIT’, ’64M’);

it should look like this one:

define(‘WP_MEMORY_LIMIT’, ’64M’);
require_once(ABSPATH . ‘wp-settings.php’);

First try 32M, then 64 and then 96 and at last 128M.

I did actually try this, which is why I ended up going with the php.ini file. I actually tried all of the recommendations to increase the memory limit by altering the php, but with no luck.

Great! Solve my problem, this code

define(‘WP_MEMORY_LIMIT’, ’64M’);
require_once(ABSPATH . ‘wp-settings.php’);

in wp-config.php remember that this file is locate home directory in your site.
Thank you!

Leave a comment