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!
EDIT
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.
I reimported DB from 1 week ago.
And memory usage was double, but still not bad.
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?
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.
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.
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.