500 Error Page Rendering Twice

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

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