WordPress Error Fatal Error Allowed Memory Size Of

PHP: Allowed memory size exhausted

One of those "issues" listed is Fatal Error memory exhausted, which reads so: ​

WordPress seems to run out of memory on servers sometimes, and give a message like: ​

e.g. on http://yottabytes.info/?p=10497 (on 2014-06-08 15:28 EDT): ​

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32 bytes) in /home/johnkrol/public_html/wp-includes/post.php on line 1961 ​ ​

I removed that section because it’s nonsense to list a server configuration issue as Criticism. ​

Yesterday Tantek reverted it because: ​

worth keeping actual error seen in the wild as a known issue until evidence presented that it’s been fixed in an update, actual fail 32 bytes ​

This forces me to issue a personal statement: ​

Dear Tantek, please try to accept explore the idea that others know a thing or two that you don’t. ​

Error explanation​

What does this error actually mean? ​

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32 bytes) in /path/to/file.php on line 1961 ​

When the code that is run by PHP needs to allocate memory – for example when a new variable is initialized – then PHP checks how much memory that variable needs, and if the currently used memory plus the new variable is with the configured memory_limit. ​

If the new memory allocation would exceed that limit, PHP simply adheres to its configuration and says "Sorry, I can’t do that" but in other words: ​

Fatal error: Allowed memory size of XXX bytes exhausted ​

The limit that Tantek saw was 41943040, which is – when divided by 1024 twice – exactly 40 MiB. Thus we can assume that johnkrol‘s server had the following php.ini setting: ​

The fact that this error was raised when WordPress tried to initialize a variable of 32 bytes is irrelevant here. ​

WordPress error fatal error allowed memory size of

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?

Leave a Reply

Your email address will not be published. Required fields are marked *