500 Error Page Rendering Twice

Odd one here, but our 500 error pages in all environments are rendering twice on the same page.

I have recently updated from an earlier version of v4. It doesn’t seem to happen on the 400 error pages so I’m a little confused. In production the error-500 page is shown twice, and in dev I get two error messages stacked - one is an emergency, and the other an alert.

I’ve narrowed it down the Monolog formatters definitely being run twice but am stuck working any further up the stack from there.

I’m triggering the error by putting a superfluous character in one of my controllers.

Logging configuration is stock.

Turns out the issue was the phptek/sentry package

1 Like