Error upgrading to newer WordPress version

Posted by cikul | Posted in PHP, web, wordpress | Posted on 14-11-2009-05-2008


Today I trying to upgrade my WordPress to newer version (2.8.6), but while u try to upgrade i get this error :

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2355240 bytes) in /home/cikul/public_html/dhika/wp-includes/http.php on line 1331

To Solve this problem, you must increasing your memory limit options for your application. In wordpress, to increase memory limit you must edit wp_settings.php in your wordpress installation folder.

This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 32MB (code is at beginning of wp-settings.php), so the setting in wp-settings.php should reflect something higher than 32MB.

Note :

this setting may not work if your host does not allow for increasing the PHP memory limit–in that event, contact your host to increase the PHP memory limit.

Please ask your host HOW they will react to you increasing memory that PHP may consume.

Increase PHP Memory to 64MB

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

Now try to upgrade your WP again.

Hope this works!

Share and Enjoy

Comments posted (5)

Thanks. It worked just fine. I, myself, was going to track the line causing the error and insert the php function:


Never knew there’s such WP constant – WP_MEMORY_LIMIT. Very useful, you never know when it happen to deal with big stuff.

oo.. ngunu a… ?!

So Far So Good. I have never face that issue… What’s the different?

I noticed that the dashboard is missing the plugins button so the obvious conclusion is that you cannot but I just want to make sure since I’m a noob at using both the self-hosted and the free versions of WP. thanks…

Let’s me do it for my site… thanks for share this tricks

Write a comment