Hallo liebe Community,
beim Formularversand schicke ich eine Benachrichtigung per NOC mit. Diese Benachrichtigung kommt nicht an. Ich erhalte im DebugModus folgende Fehlermeldung:
Code:
Uncaught PHP Exception Twig\Error\SyntaxError: "Unknown "format_bytes" filter. Did you mean "format_args", "format_file"?" at /var/www/vhosts/username.hosting_server/domain_name/vendor/terminal42/notification_center/contao/templates/notification_center/file_token.html.twig line 4
Die "file_token.html.twig" sieht so aus:
Code:
{% if format is same as 'html' %}
<ul>
{% for voucher, file in files %}
<li><a href="{{ notification_center_file_url(voucher) }}">{{ file.name }} ({{ file.size|format_bytes }})</a></li>
{% endfor %}
</ul>
{% endif %}
{% if format is same as 'text' %}
{% for voucher, file in files %}
- [{{ file.name }} ({{ file.size|format_bytes }})]({{ notification_center_file_url(voucher) }})
{% endfor %}
{% endif %}
Ich habe kein Template erstellt. Alles auf Standard.
Im Formular habe ich:
Haken bei "Per E-Mail versenden"
Mailer-Transport: leer
Datenformat: Rohdaten
Benachrichtigung: meine NOC Benachrichtigung
Formular-Template: "form_wrapper (Standard)" - Was anderes gibt es auch nicht
Contao Version: 4.13.50
Meine Extensions:
Code:
"require": {
"codefog/contao-polls": "^1.6",
"contao-themes-net/nature-theme-bundle": "^1.0",
"contao/calendar-bundle": "4.13.*",
"contao/comments-bundle": "4.13.*",
"contao/conflicts": "*@dev",
"contao/faq-bundle": "4.13.*",
"contao/listing-bundle": "4.13.*",
"contao/manager-bundle": "4.13.*",
"contao/news-bundle": "4.13.*",
"contao/newsletter-bundle": "4.13.*",
"pdir/animated-timeline-bundle": "^1.3",
"pdir/contao-sticky-footer": "^1.1",
"terminal42/contao-leads": "^3.0",
"terminal42/notification_center": "^2.2"
},
Was übersehe ich? Hat das irgendwas mit dem Twig Template zu tun?
Ich hoffe meine Angaben reichen aus mir zu helfen.
Vielen Dank
VG Frank