Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 81 bytes) in /home/public_html/hol/wp-includes/meta.php on line 571

I'm receiving this error when I try to log into my wordpress blog as admin. If I login anything else lower than level 3 everything works fine!

I tried removing all custom functions.php, error remains. But I don't understand why meta.php? what is there on line 571?

What do I do to diagnose the bad code? btw, I removed db and went back with same php files to db of 1 week ago and all works fine. So there must be something in DB? but what??

I have 256mb allocated in php.ini, should be mooore than enough!


As advised I tried to test out every plugin and theme for memory usage.

First thing I did, is to reinstall wordpress on my test server, turn on custom theme and all plugins...

Max I got was 50mb.

enter image description here

I reimported DB from 1 week ago.

And memory usage was double, but still not bad.

enter image description here

At this point, I reimported current DB and memory error re-emerged.

At this point I disabled all plugins and enabled 1 by 1. When I reached sendpress plugin error came back!

But sendpress is a simple plugin, all it does is collect emails and create a list of emails. It was not giving errors 1 week ago (have this plugin installed for about 2 month had no issues before)

So my question now is, what is happening? why would sendpress cause issues?


3 Answers 3


Turn off all plugins. Switch to TwentyTen. Then install the debug bar and helpers. Then switch back to custom theme - reload. Turn one plugin on - reload, next plugin - reload, etc.

  • I did exactly this, please take a look at my updated OQ.
    – user8842
    Commented Dec 6, 2012 at 12:30
  • @SandroDzneladze This is in idle mode...
    – kaiser
    Commented Dec 6, 2012 at 17:17

Meta.php have nothing to do with that. It is probably a plugin or your theme that cause that. Try to disable all plugins by renaming the directories and if you can login once all the plugins are disabled try to activate them one by one.

  • Please check my edit.
    – user8842
    Commented Dec 6, 2012 at 12:48
  • With the out of memory kind of error you get the report on the file/plugin which crossed the boundry, but it is totally possible that you have reached full memory before that and the error is being triggered because of a relatively small allocation that the last plugin has done. What you need to do is how much memory each plugin added after its activation. BTW, just because the plugin is simple it doesn't mean it doesn't consume alot of memory, maybe your email table is very big and it retrieves all of it from the DB every time you login. Commented Dec 6, 2012 at 14:11
  • Well, sendpress was using 200mb, after disabling it memory usage went back to normal 60mb. So it is 100% that plugin fault! I didn't have many emails, I also did a simple check, I removed all tables of this plugin, but it didn't bring back consumption. There is something terribly wrong with it.
    – user8842
    Commented Dec 6, 2012 at 15:12

I got the same error message after a plugin update for my [directory] website 1 Asked the hosting company to increase the allowed size but didn't work. Uninstalled all plugins and reinstall one by one and here goes the bingo.

  • 1
    Sorry, is this an answer? If so, please elaborate.
    – s_ha_dum
    Commented Apr 23, 2015 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.