WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fatal Error on Upgrade, Allowed memory size exhausted? (27 posts)

  1. nesagwa
    Member
    Posted 5 years ago #

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

    Not sure what this means. Any ideas?

    The site is http://www.tampamason.com

    EDIT: Found solution in another thread:

    Add this to your wp-config.php and try again

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

  2. McDragon
    Member
    Posted 5 years ago #

    Happened to me as well:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2356995 bytes) in /home2/mcdragon/public_html/blog/wp-includes/http.php on line 1331

    The fix you suggested did not solve the problem :-(
    Is there anywhere in particular this has to be entered in wp_config.php

  3. McDragon
    Member
    Posted 5 years ago #

    Right solved!

    When you open the wp_config.php file put the following string

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

    at the very beginning of the file, but just after the <?php tag, OK.

    I put it at the end (and yes, it was within the <?php ?> tags at first and that didn't work.

  4. Harrison O.
    Member
    Posted 5 years ago #

    Thanks. It worked for me.

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

  5. PhilLauterjung
    Member
    Posted 4 years ago #

    Hello,
    I have this same issue, but I can't seem to find the wp_config.php file. I have looked in every folder in my CPanel (BlueHost) and have been unable to locate. Can someone supply the proper path to finding it? Thanks.

  6. Liam Parker
    Member
    Posted 4 years ago #

    Thanks

  7. Liam Parker
    Member
    Posted 4 years ago #

    @PhilLauterjung the "wp_config.php" file will be in the root directory of your WordPress install. It is in the folder that contains such folders as "wp-content" and "wp-includes". It may be a problem with cPanel not allowing you to access these locations.

  8. sacredpath
    Moderator
    Posted 4 years ago #

    You have to love it when you do a search in a forum and the hit at the top of the list cures your problem.

    Big thanks.

  9. feeby123
    Member
    Posted 4 years ago #

    It's great to see there's a solution to this little problem but I am curious as to 'why' it's happening. It's a little scary when my WP doesn't want to update like it should.

  10. palas
    Member
    Posted 4 years ago #

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 954581 bytes) in /home/movafagh/public_html/farsi/wp-admin/includes/class-pclzip.php on line 4215
    WP_MEMORY_LIMIT don't work for me!
    any suggestion?

  11. 1. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

    2. If you don't have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 64M

    3. Talk to your host.

  12. AlwaysWorking01
    Member
    Posted 4 years ago #

    None of these worked, just tried upgrading to 3.0 and what a goat rope. Server says it's WP coding error, need assistance please.

  13. Per nacin:

    We're in the process of pushing out a plugin for this: http://wordpress.org/extend/plugins/memory-bump/

    In the meantime, you can also add this to your wp-config.php file:

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

    The issue is that WP *may* need more than the default 32 MB to upgrade to 3.0, due to the increased package size over 2.9. This is a "known issue".

    3.0 handles this by always bumping you to a very high memory limit in the admin area, so you won't see this once you've hit 3.0.

  14. micksay
    Member
    Posted 4 years ago #

    I had the same problem and it worked for me - thanks for the help much appreciated - Mick

  15. kishoremylavarapu
    Member
    Posted 4 years ago #

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2965231 bytes) in /home/devil/public_html/wp-includes/class-http.php on line 1402

    I am getting like above while upgrading to wordpress3.0 help needed..

  16. esmi
    Forum Moderator
    Posted 4 years ago #

  17. loqueris
    Member
    Posted 4 years ago #

    Disco. Thanks hive mind.

  18. mhulyana
    Member
    Posted 4 years ago #

    I experience two problems.
    1. Memory limit, such as many people told above; and
    2. User list not show on my "Site Admin".
    But it's no longer a problem, "define('WP_MEMORY_LIMIT', '256M' );" is very good solution.
    Thank you so much.

  19. Lolobloggs
    Member
    Posted 4 years ago #

    I am having the same problem. Have tried all the fixes above and none have worked.

    Mine is slightly odd because one image is consistently working, however another set keep giving me the error.

    Fatal error: Out of memory (allocated 67108864) (tried to allocate 18640 bytes) in /websites/123reg/LinuxPackage21/sh/ev/el/shevellerhule.com/public_html/wordpress/wp-includes/media.php on line 253

    The image that is uploading is actually larger, and the other files have been optimised for web so shouldn't be causing huge problems...?

    1. Is this down to the same issue as the above? If not I will start a new question
    2. If yes, how long before it might be resolved?

    Many thanks.

  20. stonika
    Member
    Posted 4 years ago #

    I have the same problem.
    Any respond?

  21. stonika
    Member
    Posted 4 years ago #

    Maybe a All in One SEO Plugin is the problem.
    1. Deactivate the SEO plugin
    2. Upload the images
    3. Update the post.
    4. Activate SEO.

    Is it works for me.

    It was a good experience for me that when I installed new plugin try almost every details.

  22. bopartner
    Member
    Posted 4 years ago #

    I found a solution to this...thanks to this thread!

    "When you open the wp_config.php file put the following string

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

    at the very beginning of the file, but just after the <?php tag, OK."

    Rock N' Roll!

  23. frostnova
    Member
    Posted 4 years ago #

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

    Does not work for me when upgrading 3.0 to 3.0.1. I'm on shared hosting. But look at the error it doesn't make sense

    Allowed memory size 33554432 bytes
    tried to allocate 2966269 bytes

    2966269 < 33554432 so what gives?

  24. J32
    Member
    Posted 4 years ago #

    Same problem here like frostnova has. Trying to upgrade from 3.0 to 3.0.1 and none of the above mentioned solutions works. I get the same numbers like frostnova.

    Allowed memory size 33554432 bytes
    tried to allocate 2966269 bytes

  25. mark francombe
    Member
    Posted 4 years ago #

    Errr... Me too.. exactly the same number of bytes...
    plus tried all fixes and the plugin mentioned...

    Cant upload background or header graphic in the new twenty ten theme.

  26. jamodu
    Member
    Posted 4 years ago #

    Yeah, I had the same issue with identical figures:

    Allowed memory size 33554432 bytes
    tried to allocate 2966269 bytes

    I added the memory definition to wp-config.php define('WP_MEMORY_LIMIT', '256M' );

    Which still didn't work. Then I deactivated ALL plugins and wordpress upgraded to 3.0.1 without any problems. After that all the plugins activated ok.

    Done! Hope that helps :)

  27. Uzma
    Member
    Posted 4 years ago #

    Tried everything, nothing works :(

Topic Closed

This topic has been closed to new replies.

About this Topic