For those of you who have tried updating to WordPress 2.8.2, which was released today, you may have gotten an unexpected error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2355395 bytes) in /public_html/wp-includes/http.php on line xxx

If you look at the file mentioned in the error message, you won’t find anything worthy of changing. I believe the line number mentioned is simply the line where WordPress ran out of memory.

Fortunately, I found the answer in a thread on the WordPress Forums (which should be one of the 1st places you go when looking for WP-related answers).

The error is memory related, so increase your available memory (after backing your site up, of course). Edit your wp-config.php file and add the following line right after the opening php statement:

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

Save the file and try the upgrade again. Unless you have something else wrong with your site/WP setup, the upgrade should now work perfectly.


Similar Posts:

  • Share/Bookmark