Uncaught exception message is shown when exception is thrown during the terminate event

Created on 16 January 2015, almost 10 years ago
Updated 1 August 2024, 5 months ago

Problem/Motivation

If something throws an exception during execution of $kernel->terminate(), the following message is appended to the rendered page:

If you have just changed code (for example deployed a new module or moved an existing one) read http://drupal.org/documentation/rebuild

The terminate event fires after the page has been sent to the browser (including headers / HTTP status). It should not generate any additional output and even more important, the catch-clause cannot modify the HTTP status at this time anymore.

Proposed resolution

Remaining tasks

User interface changes

API changes

🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component
Request processing 

Last updated 7 days ago

No maintainer
Created by

🇨🇭Switzerland znerol

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024