Project

General

Profile

Bug #9013

Error in Twig template not handled

Added by Nicola Chiapolini about 2 years ago. Updated 21 days ago.

Status:
Priorize
Priority:
Normal
Assignee:
Target version:
Start date:
04.09.2019
Due date:
% Done:

0%

Estimated time:
Discuss:

Description

Bei einem Fehler im Twig-Template wird die "Oops, an errro occured..." Meldung angezeigt und der Debug-Output ist nirgends sichtbar. (analog zu #6216)

#1

Updated by Carsten Rose almost 2 years ago

  • Status changed from New to Some day maybe
#2

Updated by Marc Egger over 1 year ago

  • Status changed from Some day maybe to New
  • Assignee set to Marc Egger
#3

Updated by Marc Egger over 1 year ago

  • Status changed from New to In Progress
#4

Updated by Marc Egger over 1 year ago

Created branch for issue and implemented it. Twig errors are shown.
Problem: QFQ removes new line characters early. The whole Twig template is on one line which makes the error messages useless.
Solution?: We have to find a way to keep the new line characters in the twig template when parsing a QFQ report.

#5

Updated by Marc Egger about 1 year ago

  • Status changed from In Progress to Priorize
#6

Updated by Marc Egger 7 months ago

  • Status changed from Priorize to New
  • Assignee changed from Marc Egger to Carsten Rose

QFQ loescht alle new line characters raus, wenn es einen Report rendert. deshalb ist es nicht moeglich eine schoene Twig fehlermeldung auszugeben, da man das twig template nur als einzeiligen string und nicht mit originaler formatierung rendert.
Hast du irgend eine (quick and dirty) idee wie man das twig template samt newlines aus dem report ziehen koennte beim parsen?

Nicola wäre uns um dieses feature sehr dankbar

#7

Updated by Carsten Rose 7 months ago

  • Priority changed from Normal to High
#8

Updated by Carsten Rose 5 months ago

  • Assignee changed from Carsten Rose to Marc Egger

Was waere mit '<br>'?

#9

Updated by Carsten Rose 5 months ago

  • Target version set to 21.7.1
#10

Updated by Carsten Rose 5 months ago

  • Target version changed from 21.7.1 to 21.7.0
#11

Updated by Carsten Rose 5 months ago

  • Priority changed from High to Normal
#12

Updated by Carsten Rose 5 months ago

  • Status changed from New to Priorize
#13

Updated by Marc Egger 5 months ago

  • Status changed from Priorize to New
#14

Updated by Marc Egger 4 months ago

Carsten weiss gerade nicht, weshalb alle \n geloescht werden.
Ansatz: das loeschen raus nehmen und probieren ob QFQ noch laeuft.
Falls nein: dann Twig keyword fuehzeitig erkennen und das loeschen der \n nur fuer non-twig machen
Falls ja: check ob wir das komplett rauslassen koennen

#15

Updated by Marc Egger 4 months ago

  • Status changed from New to Priorize
#16

Updated by Marc Egger 21 days ago

  • Assignee changed from Marc Egger to Carsten Rose

Also available in: Atom PDF