• Join ShoutMeLoud on Google+
  • X
    Sign-up for FREE weekly Newsletter.

    WordPress Fatal error: Allowed memory size Allowed memory Size

    by Harsh Agrawal

    Today I was working on a client blogspot to wordpress migration and client had whooping 3000+ post. For the migration there are some changes which needed to be make in php.ini to make sure that wordpress will be able to transfer all the blogspot posts and comments.

     

    Though migration was successful after 8 hours of work but after installing few plugins wordpressmemorylimit thumb dashboard was showing an error message stating :

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home8/xxxxxx/public_html/wp-admin/includes/misc.php

    The problem was due to allocated memory size in php.ini file and the best possible work around is to change the memory_limit of your php.ini file.

    Access your wordpress file using any free FTP account. On the root of your wordpress installtion, there is a file call php.ini.

    Download the file and create a back up. Now edit the php.ini file and search for line

    memory_limit = 2M

    It can be 8M or 16 M

    Change the limit to 64 M and it will look like

    memory_limit = 64M

    Now upload the file and check your wordpress dashboard. This should resolve the problem. If you still face the problem, Let me know and I will try to find the alternative solution.

    In case if you don’t have access to php.ini file, ask your web host Customer care   to change the memory_limit of your php.ini file.

    I hope this will help others who will get into similar kind of problem.

    Related WordPress Problems :

    971440278ea059520dd40a9ef8877577delicious

    Article by Harsh Agrawal

    Harsh has written 945 articles.

    If you like This post, you can follow ShoutMeLoud on Twitter. Subscribe to ShoutMeLoud feed via RSS or EMAIL to receive instant updates.

    { 5 comments… read them below or add one }

    Surender Sharma

    Harsh this type of problem occurred with me while making changes on functions.php file, but thank god I have uploaded the file again through FTP with some changes.
    Anyways,Your tutorial is more helpful for me.
    .-= Surender Sharma ´s last blog ..How to Integrate Flickr Album on Your Wordpress Blog =-.

    Reply

    Chinmoy

    This is very dangerous. Thanks for the solution. I saw another article, which gives more vulnerabilities, at this post on techcrunch : http://www.techcrunch.com/2009/09/05/security-threat-wordpress-under-attack/

    Reply

    Greg Ellison

    You just had so much data being accessed that you ran out of memory? Thats cool that you can up the memory in the php.ini file. This person must have been for a long time. Greg Ellison
    .-= Greg Ellison ´s last blog ..The Great New York State Fair Round 2 =-.

    Reply

    mostlyBlog

    hey good tutorial thanks for info
    .-= mostlyBlog ´s last blog ..Submit Blog To Directories =-.

    Reply

    ComputeLive

    I had the same problem 1 week ago..I wasn’t able to activate or deactivate any plugins…I also couldn’t upgrade plugins automatically…after search for hours on google…I was able to fix this problem..
    .-= ComputeLive ´s last blog ..Download Microsoft Office 2010 Build 14.0.4417.1000 =-.

    Reply

    Leave a Comment

    Previous post:

    Next post:

    `