Opened 6 years ago

Closed 6 years ago

#13049 closed (duplicate)

debug 500 page incorrectly reports "extends" TemplateDoesNotExist errors.

Reported by: jabapyth Owned by: jabapyth
Component: Template system Version: master
Severity: Keywords: template, error, debug, templatedoesnotexist, templatesyntaxerror
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


There are two parts to this solution (because there are two things preventing correct report of errors).

  1. originally the 500 page showed a TemplateSyntaxError when a TemplateDoesNotExist error was being fired (due to an improper wrapping in
  2. once that was fixed, the ExtendsNode assumed that if a TemplateDoesNotExist error was thrown while getting its parent template, its parent could not be found. As you can imagine, this is not the case if the parent template extends (or includes) a template that does not exist.

Attachments (1)

extends_template.diff (1.8 KB) - added by jabapyth 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by jabapyth

comment:1 Changed 6 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Sounds like #12787

Note: See TracTickets for help on using tickets.
Back to Top