Opened 10 years ago

Last modified 10 years ago

#24960 closed Bug

Blank pages due to {{ block.super }} — at Version 2

Reported by: Sven R. Kunze Owned by: nobody
Component: Template system Version: dev
Severity: Normal Keywords: block.super blank pages
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description (last modified by Sven R. Kunze)

When using {{ block.super }}, it behaves like a normal variable which leads to the following issue:

As soon as the block.super raises (e.g.) a UnicodeDecodeError, {{ block.super }} evaluates to an empty string.

When using {{ block.super }} in cascading base templates, this frequently leads to blank pages which are hard to debug.

Change History (2)

comment:1 by Sven R. Kunze, 10 years ago

Description: modified (diff)
Keywords: UnicodeDecodeError added; UnicodeEncodeError removed
Summary: {{ block.super }} hides UnicodeEncodeErrors{{ block.super }} hides UnicodeDecodeErrors

comment:2 by Sven R. Kunze, 10 years ago

Description: modified (diff)
Keywords: blank pages added; UnicodeDecodeError removed
Summary: {{ block.super }} hides UnicodeDecodeErrorsBlank pages due to {{ block.super }}
Note: See TracTickets for help on using tickets.
Back to Top