Opened 9 years ago

Closed 9 years ago

#13049 closed (duplicate)

debug 500 page incorrectly reports "extends" TemplateDoesNotExist errors.

Reported by: Jared Forsyth Owned by: Jared Forsyth
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: no UI/UX: no


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 Jared Forsyth 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by Jared Forsyth

Attachment: extends_template.diff added

comment:1 Changed 9 years ago by Karen Tracey

Resolution: duplicate
Status: newclosed

Sounds like #12787

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