Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1020 bytes) in /sites/all/modules/views/plugins/views_plugin_display.inc on line 21

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35 bytes) in /drupal/sites/all/modules/views/includes/base.inc on line 100

I get either one or the other on my screen

I am on a test site

I have 550M of memory allocated in php.ini

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Definitely something wrong, but no way to tell what without being able to reproduce this situation. Memory errors can be anything, and where you see the crash is not necessarily what was taking up all the memory. It's just the straw the broke the proverbial back.

For what it's worth, that says your PHP is set to 128M which is still more than plenty for any Drupal install I've ever seen.

socialnicheguru’s picture

Ok. I am confused.

In settings and my php.ini file I set it to 550M.

it even says so on the status page.

So how is my memory set to only 128M?

Where should I look for an alternately defined php memory limit?

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
gianfrasoft’s picture

Hi, @SocialNicheGuru.

Did you solve the problem? I have the same.

Thanks.

gianfrasoft’s picture

Hi @SocialNicheGuru, hi all,

we solved the problem. It was an erroneous call to the node_load api inside a theme file.

In the code:

    $node = node_load(788);

node 788 didn't exist and the allowed memory size exhausted fatal error came out always, also with a huge amount of memory allocated in php.ini.

Hope this helps.

Bye.

socialnicheguru’s picture

how did you find where it was?

gianfrasoft’s picture

Disabling one by one theme files. Doing so, we found the file giving the problem so, disabling progressively pieces of php code in the file we found the killer api.

: )

khosman’s picture

same issue, subscribing