Home » Php » php – Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 39 bytes) in xxx/xxx/xxx/xxx

php – Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 39 bytes) in xxx/xxx/xxx/xxx

Posted by: admin July 12, 2020 Leave a comment

Questions:

I have hosted one drupal website in godaddy. but now a days I am fighting with most weird problem “Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 39 bytes) in xxx/xxx/xxx/xxx”. I am beating my head against a wall to solve out that problem but nothing is useful for me. It always shows this error, whether I install new module,delete module,clear cache or add article etc, in almost all cases it shows allow memory size exhausted error. I also go through my php.ini file and change memory_limit = 128M but that error is not live me in drupal world. Please help to sort out this issue..

here is my phpinfo:

enter image description here

i already increased my memory_limit in php.ini from 64MB to 128MB, but it is not getting reflected in my server. when i go to https://www.ginfy.com.phpinfo.php still it is showing 64MB.

How to&Answers:

The change u’ve made in your php.ini file has not been reflected because the allocated memory 67108864 bytes is 64MB.

Follow Drupal Community Documentation increase the PHP memory limit. In Case of shared hosting please request the hosting provider to increase it.

Answer:

add this in your php file

ini_set('set_memory_limit',-1);