formcreator icon indicating copy to clipboard operation
formcreator copied to clipboard

Email notifications trigger error 500

Open vincentdeniau opened this issue 1 year ago • 3 comments

Hello there,

I encountered an issue with Form Creator and email notifications.

  • GLPI version : 10.0.10
  • Form Creator version : 2.13.7

Expected behavior When validating a form, the user returns to the simplified interface to see his/her ticket and gets notified by email.

Actual behavior When clicking on "Validate", the button keeps turning for 30 seconds then a message appears: image image

In the browser console : image

In PHP logs : [Sun Oct 15 22:43:16.263408 2023] [php:error] [pid 3939] [client 172.16.130.1:52408] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/glpi/src/Entity.php on line 3311, referer: https://[redacted].com/marketplace/formcreator/front/formdisplay.php?id=1

Few testing This issue appears only when email notifications for tickets are enabled and active. Everything works fine is notifications are disabled or if ticket-related notifications are inactive. I tried to increase the PHP execution time to 1200 seconds but to no avail.

vincentdeniau avatar Oct 15 '23 21:10 vincentdeniau

Hi

Do you reproduce with other forms? Do you reproduce when a requester create a ticket without Formcreator? Did you try to send a test email in the notifications configuration page ?

btry avatar Oct 16 '23 03:10 btry

Do you reproduce with other forms? Yes, even a very simple one (just one checkbox) Do you reproduce when a requester create a ticket without Formcreator? Yes, same issue in Assistance > Forms on standard interface Did you try to send a test email in the notifications configuration page ? Yes, it works.

So it seems to be related to GLPI itself ?

vincentdeniau avatar Oct 16 '23 14:10 vincentdeniau

Do you still reproduce when you disable Formcreator then create a ticket from glpi ?

btry avatar Oct 16 '23 14:10 btry