WordPress.org

Ready to get started?Download WordPress

Forums

[closed] "out of memory" error (Urgent!) (23 posts)

  1. A2JC4life
    Member
    Posted 3 years ago #

    I *think* I'm using 3.0.2. (I know I'm using 3-point-something and it's not the very newest one.) However, the nature of my problem is keeping me from verifying exactly.

    I have been unable, the last several times, to upgrade automatically, because I get a "fatal error: out of memory" error. Although a nuisance, this is ultimately not a big deal; I just update manually. None of the fixes suggested here have worked. And I have other WordPress installations on the same host account which work fine, so it's not a server issue.

    But today, I can't log onto anything admin! Whether I attempt to go to the wp-admin/ directory, type my way directly into my list of posts, or click through the "edit" link on a previously-posted article, I keep getting an error like this: Fatal error: Out of memory (allocated 23068672) (tried to allocate 19456 bytes) in /home/homework/public_html/wp-admin/includes/theme.php on line 83

    This is a REALLY big problem, because I literally cannot do ANYTHING with my blog (except view it, as a reader would). What the heck is going on?

  2. Hyper123
    Member
    Posted 3 years ago #

    If the other setups work fine there has to be something unique about this install. I would try removing plugins first to see if that helps and go from there.

  3. Samuel B
    moderator
    Posted 3 years ago #

    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 = 128M ; Maximum amount of memory a script may consume (128MB)

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

    3. Try adding this line to your wp-config.php file:
    Increasing memory allocated to PHP
    define('WP_MEMORY_LIMIT', '128M');

    4. Talk to your host.

    #3 is likely simplest for you

  4. A2JC4life
    Member
    Posted 3 years ago #

    I have tried all of those memory "edits." But you may also notice that it has allocated well over the number of bytes it says it tried to allocate.

    Hyper, how do I remove or disable the plugins if I can't get into admin?

  5. Hyper123
    Member
    Posted 3 years ago #

    If you remove the plugin from wp-content/plugins that will deactive them. Just hold on to the files elsewhere so you can turn them back on later.

  6. A2JC4life
    Member
    Posted 3 years ago #

    I will try that. Thanks! (Any idea why the problem would have suddenly "jumped," though? I have not done anything with this blog since the last time I logged in.)

  7. Hyper123
    Member
    Posted 3 years ago #

    It is kind of hard to tell. Your host might give you just enough memory to make it by and that might be why these issues crop up like this. If you keep having issues you might try moving to a bigger webhost that would give you more memory.

  8. A2JC4life
    Member
    Posted 3 years ago #

    Okay; I moved ALL plugin files/folders out to another location (outside of my blog installation). That DID fix the login issue (for now, at least). Out of curiosity, though, I went ahead and tried to update WordPress, and still got this error:

    Fatal error: Out of memory (allocated 20709376) (tried to allocate 2975669 bytes) in /home/homework/public_html/wp-includes/class-http.php on line 1408

    How would you recommend going about moving plugins back IN? Would you just copy the folders back in one at a time until it breaks, and then move the last one back out? Or is there another way to do it?

  9. Hyper123
    Member
    Posted 3 years ago #

    You can copy all of the files back. Just having the files moved back in will not activate them. You can then activate them one at a time from the admin and if it kills the site just remove that one from the folder. Ultimately you might have to ask your host to increase your memory limits or look to moving to a new host.

  10. A2JC4life
    Member
    Posted 3 years ago #

    Oh, one other plugin-related question: is it normal for some plugins to have their files in the plugins folder, but not in their own subfolder? 'Cause I had a couple like that, and I wondered if maybe that was the problem. But maybe that's not unusual.

  11. Hyper123
    Member
    Posted 3 years ago #

    It is better to have them in a subfolder mostly to make it easier to manage the files and better organize the folder but overall it doesn't HAVE to be that way.

  12. A2JC4life
    Member
    Posted 3 years ago #

    Well, phooey. I moved the plugin files back in, and I immediately can't get back in again.

  13. Hyper123
    Member
    Posted 3 years ago #

    That is strange. Try moving them one a time if that's the case. WordPress shouldn't of activated them though.

  14. A2JC4life
    Member
    Posted 3 years ago #

    Hmmm...actually it is activating them as I put them back. Still, replacing them one at a time should tell me what's breaking things. It still seems weird that it flaked out so suddenly. I didn't JUST install any of these. Wish I understood this stuff better!

    I really, really appreciate your help!!

  15. Hyper123
    Member
    Posted 3 years ago #

    Not a problem. If you look at older posts I have replied to at least of them dealt with plugin issues.

  16. A2JC4life
    Member
    Posted 3 years ago #

    Weirder and weirder. I moved them all back in, one at a time, and I can still get in. I think my server has a gremlin! lol

  17. A2JC4life
    Member
    Posted 3 years ago #

    Well, I still don't know what's wrong, but at least I'm not locked out (and know how to - at least temporarily - address that if it happens again). That is a tremendous help! (I was a bit panicky over the fact that I couldn't get in and was completely at a loss!)

  18. A2JC4life
    Member
    Posted 3 years ago #

    Okay, apparently it didn't reactivate ALL of my plugins as I copied them back in. This is really acting oddly.

  19. Hyper123
    Member
    Posted 3 years ago #

    See if activating them makes the issue come back.

  20. A2JC4life
    Member
    Posted 3 years ago #

    I've reactivated most of what I believe I had active before. I haven't had the same issue yet, but when I reactivated one, I did get a similar error message in the "WordPress Development Blog" section of the dashboard.

  21. Hyper123
    Member
    Posted 3 years ago #

    It really sounds like your near the limits of what your host allows as far as memory goes and will continue to see these kind of issues.

  22. A2JC4life
    Member
    Posted 3 years ago #

    And it seems that maybe it's related to the number of plugins, rather than the plugin itself, because I couldn't remember which of two I'd activated last, so I swapped them out. Neither gives me the error by itself, but when I activate both, I get the error again. (Still not the major login issue, but the "out of memory" message in the WordPress Blog section.

    I think I have to go to bed and try to deal with this again tomorrow, or hubby is going to have my head.

    Thank you SO much for helping me figure out how to get back into admin!

  23. esmi
    Forum Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic