WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Allowed memory size exhausted (14 posts)

  1. jameswfrost
    Member
    Posted 7 years ago #

    Hi,

    I'm having something of a problem with my WordPress installation. It's been running absolutely fine for years, but recently it's gone wrong.

    It started a few weeks ago, when I couldn't access the Manage page of the admin interface correctly. The menu would load but then I'd get an error similar to '
    Fatal error: Allowed memory size of 73400320 bytes exhausted (tried to allocate 1 bytes) in /home/thebears/public_html/wp-includes/functions.php on line 1453

    Fatal error: Allowed memory size of 73400320 bytes exhausted (tried to allocate 39 bytes) in /home/thebears/public_html/wp-includes/functions.php on line 1270'

    I tried upgrading to the latest version, but that didn't help. Eventually, for whatever reason, the problem seemed to go away.

    But now it's back, and worse, because it's on the front-end of my site. It's the same error, and I guess will still be there now if you visit http://www.thebearsarecoming.co.uk/

    Strangely, I can still access the admin interface - it's just the front end that doesn't work. And I don't think I've changed anything.

    That seems to be an awful lot of memory for it to try and use - does anybody have any ideas?

    Thanks,

    James Frost

  2. Chris_K
    Member
    Posted 7 years ago #

    Talk to your host about getting php configured to use more than the default 8MB.

    Or look at removing some plugins as they tend to contribute to memory usage.

  3. jameswfrost
    Member
    Posted 7 years ago #

    > Talk to your host about getting php configured to use more than the default 8MB.

    Forgive me if I've misread, but isn't 73400320 bytes over 70 megabytes?

  4. Chris_K
    Member
    Posted 7 years ago #

    My apologies. I must've dropped a decimal.

    That's a stupidly huge amount of memory for even WordPress, not the most svelte of all php scripts.

    What plugins are we running?

  5. jameswfrost
    Member
    Posted 7 years ago #

    I'm running:

    Brian's Latest Comments
    flickrRSS
    Limit Posts
    PHPMarkdown Extra
    Subscribe To Comments
    Ultimate Tag Warrior: Tag Archive
    Ultimate Tag Warrior
    Ultimate Tag Warrior: Legacy

    I'm using the theme Liquid Black, which needs a bunch of those.

    James

  6. jameswfrost
    Member
    Posted 7 years ago #

    Ah. Well, that's odd.

    I've just changed my theme and disabled Ultimate Tag Warrior (found a previous support post about it) and it seems ok.

    But the strange thing is that I've previously tried disabling all my plugins and it didn't work still!

    Weird...

  7. tweedie
    Member
    Posted 7 years ago #

    I'm having the exact same problem with mine except this is with my test blog on my wamp server. I know it's a setting in admin-functions.php that I can change or add but could some kind soul help me out with the coding. I stink at php. LOL Thanks so much.

    Tina C.

  8. brettbum
    Member
    Posted 6 years ago #

    I am also seeing this error

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 150759 bytes) in

    Note. the number for memory size jumps around.

    The thing is that I get this error when I attempt to click on the plugin tab in WordPress.

    I'm pretty sure a plugin is causing it, but I can not deactivate the plugin because I can not get at it.

  9. ccoupe
    Member
    Posted 6 years ago #

    I'm pretty sure your hosting service is restricting you to 8MB of script memory which is what less clueful out of the box PHP hosts do. 12MB or 16MB or even a lot more is reasonable. Ask your hosting service tech support folks to up it in php.ini, It really won't hurt them if they know how memory and paging and cpu cycles work.

  10. reza699
    Member
    Posted 6 years ago #

    I am also seeing this error

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 269845 bytes) in
    wp-includes/cache.php on line 48

  11. Chris_K
    Member
    Posted 6 years ago #

    Did you read ccoupe's response right above yours? ;-)

  12. torbens
    Member
    Posted 6 years ago #

    I'm experiencing the same problem for the first time right now. My plugin configuration is completely different to the one of jameswfrost except for the Subscribe to Comments plugin.

    What's odd is that my installation also runs into problems at the same line of cache.php as for reza699 but for quite a bigger amount of allowed memory:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 316105 bytes) in wp-includes/cache.php on line 48

    What's even more odd, is that another quite complex PHP-based application is still running in the same context without any problems at all.

    I'd rather guess it's a bug in WP than one of the plugins.

    I'm considering to open up a ticket in trac.

    Cheers,
    Torben

  13. Dion Hulse
    WordPress Dev
    Posted 6 years ago #

    torbens,
    Its not a bug in WP as far as i can see, its simply using up all the available ram for it (32MB).
    The fact another PHP based app is running fine means nothing, it just means it uses less memory.
    Either get the host to increase the ram limit as above, or disable plugins/track down whats causing it to use so much (Its not in cache.php, more likely a plugin)

    8MB isnt enough for WP on PHP5, 32MB is usually enough for it though (Unless you've got some fairy load intensive plugins loaded)

  14. torbens
    Member
    Posted 6 years ago #

    I do think it is in cache.php. Please see http://trac.wordpress.org/ticket/4045#comment:4

    The problem immediately disappeared after commenting out the mentioned line.

    And nevertheless we are talking about 32MB, which for my understanding is quite a bit more than the maybe problematic 8MB.

Topic Closed

This topic has been closed to new replies.

About this Topic