• I’ve been searching through the forums for a solution and have tried contacting my host. No luck.
    Any clues on how to fix this?:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 5922489 bytes) in …/public_html/wp-includes/functions.php on line 377

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey CrackingAce,

    You can change the maximum memory allocated your site by adjusting your wp-config.php, or php.ini file on the server. Here’s some instructions on how to do that:

    https://docs.woothemes.com/document/increasing-the-wordpress-memory-limit/

    Shawn

    Thread Starter CrackingAce

    (@crackingace)

    Thanks for the response.

    I’ve tried that and it didn’t seem to help. I’ve also removed a number of plugins that could have been draining memory. For a while the problem stopped but it has come back again.

    Actually you have 256M assigned, which should be plenty unless you run a heavy shop or something like it.

    You have a serious memory thief somewhere.
    Personally I would start by deactivating all plugins, then install one of the health plugins: https://www.ads-software.com/plugins/tags/memory

    Check memory usage which now should be really low, like <50M
    If it is still in the hundreds there is something in your theme that is truly bad.

    A rather typical thing that could be the culprit is something that has a runaway condition. Like a do-while loop that under certain conditions could run infinitely, or a callback that gets called repeatedly while the result is stashed rather than reset after use.

    I don’t know if you’re a dev yourself so you can do analysis, if you’re not you’ll probably end up having to hire one or switching the offending plugin/theme.

    You can try P3 Profiler plugin: https://www.ads-software.com/plugins/p3-profiler/ to check which plugin is taking much memory.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error memory’ is closed to new replies.