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:
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.
Change the memory limit in the php. ini file and restart Apache. After the restart, run the phpinfo(); function from any PHP file for a memory_limit change confirmation. Memory limit -1 means there is no memory limit set.
To fix the error, you have to manually increase the default PHP memory limit set for your server.
Try prefixing your command with COMPOSER_MEMORY_LIMIT=-1 . This will remove the memory limit for the execution of the command. Update: Memory exhaust errors should now be resolved by using Composer 2.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With