Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a developer uses e.g. the hook_post_action module to submit a new node and this fails with an exception, it gets silently unreported as the error message will not be shown to the user because the HTTP 302 and the Location header set by the node module are still in effect.
This patch removes eventual Location headers and sets HTTP 500 error code so the user can see the exception.
Comment | File | Size | Author |
---|---|---|---|
drupal-core-shutdownexception.patch | 749 bytes | mschuster91 | |
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedComment #3
cilefen CreditAttribution: cilefen commentedI realize the existing comment below this chunk exceeds 80 columns but it is the code standard to wrap inline comments at 80 columns.
Also:
Please check if this is an issue with Drupal 8. If so, it must be fixed there first according to the backport policy.