I have an error that occurs when trying to edit an existing task. The server returns a 500 error. Looking at the Apache log file, I see the following:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/test-myrr/data/SugarBean.php on line 1991, referer:
Similar messages are repeated several times. When I increase the log level to INFO, It looks like the application is stuck in a loop. The following query is executed 988 times, until the memory is exhausted:
Query:SELECT user_id id FROM contacts_users WHERE contacts_users.contact_id = '37227b06-72a1-001c-fa32-5f5b29e49c05' AND contacts_users.deleted=0
This happens for any task in the system. I can create new Tasks, but cannot edit them.
Any ideas what could be wrong?
Can you please increase “memory_limit” in php ini file. You should set it to 256M
Hi, thanks for your reply.
I tried this, but the error is the same:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/test-myrr/data/SugarBean.php on line 1991, referer: https://...
Except that we can now see the increased memory limit.
I even tried increasing to 512MB but the error persists:
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/test-myrr/data/SugarBean.php on line 4747, referer: https://...
Check for an infinite loop. Typically, an after_save logic hook that saves the bean, or the same thing coming from a Workflow.
Thanks for your reply.
It is stuck in an infinite loop. I’ve tracked the problem down to the Field Level Access control module. I will raise this with the module developers.