UnixServerAdmin

Server Administration & Management

WordPress Fatal error: Allowed memory size of xxx bytes exhausted while upgrading WordPress

You might have received the error stating that “Fatal error: Allowed memory size of xxx bytes exhausted (tried to allocate xxxx bytes) in some-file.php on line xxx” while upgrading you WordPress version. The reason is that while executing PHP file, it exceeds allowed PHP memory on the server. Generally this happens if the value for memory_limit is set to low (probably 8M etc.) in PHP configuration file php.ini. There are some workaround to increase the value for PHP memory.

[1] You can contact your host to raise limit for php_memory.

[2] You can add following line in your .htaccess:

php_value memory_limit 64M

This will not work if suPHP is enabled on your server. If suPHP is enabled on your server then you will need to put php.ini in the root of your domain and modify the following line:

memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

[3] You can also raise PHP memory from wp-config.php file. Just add the following line after opening PHP tag:

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

Advertisements

January 20, 2011 - Posted by | PHP, WordPress | ,

9 Comments »

  1. Hello all

    Yes, I understand you. In it something is also thought excellent, I support.

    Comment by bepApeforpper | April 8, 2011 | Reply

  2. I think, what is it excellent idea.

    Comment by InsemeRem | April 10, 2011 | Reply

  3. I like this idea, I completely with you agree.

    Comment by Entaimiareral | April 11, 2011 | Reply

  4. Thanks for sharing your thoughts here. I really appreciate it.

    Comment by cialis | April 27, 2011 | Reply

  5. Nice one for revealing this information. I think it is very insightful certainly forward it to associates, as well. If you go on writing about this subject I will certainly carry on reading your upcoming blogposts.

    Comment by fresh water | June 15, 2011 | Reply

  6. Anytime I research a topic I have no clue what i may discover. I am so thrilled to have came across this comprehensive blogging because it perfectly details the issues I have in mind and also the unspoken issues that i would’ve checked for later on.

    Comment by clean water | June 16, 2011 | Reply

  7. I really like what you’re writing here. Keep working that way. Take care!

    Comment by cardaddy | July 20, 2011 | Reply

  8. Excellent blog page, appreciate your sharing authoring th is without question provide

    Comment by kamagra review drug | October 22, 2011 | Reply

  9. very good do the job, many thanks

    Comment by viagra medicine | October 22, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: