Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ilex01's avatar
Level 5

Maximum execution time of 60 seconds exceeded

I've a Maximum execution time of 60 seconds exceeded error when I submit the form in local.

However, in production it works fine. No problem in production.

[2025-02-12 17:18:29] production.ERROR: Maximum execution time of 60 seconds exceeded {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 60 seconds exceeded at C:\\wamp64\\www\\hellomails\\hellomails\\vendor\\symfony\\mailer\\Transport\\Smtp\\Stream\\SocketStream.php:154)
[stacktrace]
#0 {main}
"}
0 likes
2 replies
tykus's avatar
tykus
Best Answer
Level 104

Seems it is getting stuck when attempting to send an email; how is Mail configured in your local development environment? Have you considered using something like using the Log driver, or configuring MailHog or Mailtrap?

1 like
ilex01's avatar
Level 5

@tykus The email sending was misconfigured locally in the .env file. Thanks!

Please or to participate in this conversation.