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

Posted on by in Wordpress

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.

Share

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

  1. Techcraft 16 September 2010 at 12:31 pm #

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

  2. geek 16 September 2010 at 10:00 pm #

    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.

    • Marketing 20 September 2010 at 10:07 am #

      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.

    • Leonardo 16 February 2011 at 10:14 pm #

      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!


Let us know what you think about this article!