WordPress.org

Support

Support » How-To and Troubleshooting » "out of memory" error (Urgent!)

"out of memory" error (Urgent!)

Viewing 15 replies - 1 through 15 (of 22 total)
  • 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.

    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

    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?

    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.

    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.)

    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.

    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?

    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.

    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.

    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.

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

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

    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!!

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

    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

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘"out of memory" error (Urgent!)’ is closed to new replies.
Skip to toolbar