-
Notifications
You must be signed in to change notification settings - Fork 27
Sometimes outputs email body to browser instead of send it #58
Comments
If there were fatal error during sending email (for example, |
In from TwigTemplate class:
... fatal error is not exception, so |
+1, it happens to me sometimes, quite dangerous in production! |
@binarious, yes. I'd remove ErrorNotifierBundle from all my projects and replaced with native monolog - it works fine. |
I haven't noticed this behaviour and we're using it in a lot of applications. I don't see how the email contents could get send to the browser. The fatal exception is caught by the error handler defined in this bundle and it should take care of it. If you have a reproducible test case or a stacktrace then please let me know. |
@binarious, I don't have test. Likely, PHP version is matters. When I posted this 1 year ago, I used php5, now php7. There were a lot of exception-related changes in php7. I did not try to reproduce this bug after replacing this bundle with http://symfony.com/doc/current/logging/monolog_email.html (it works fine!). |
@psylosss Thanks for your input. Monolog is missing a lot of things here I like about this bundle: eg. scoped variables, request variables, session, formatted stacktrace and code parts. |
In prod env at some errors all the email body outputs to browser. All backtrace with php-code is visible to user. Yes, in production. Why it may happens?
The text was updated successfully, but these errors were encountered: