Details
-
Bug
-
Resolution: Done
-
Medium
-
4.3.0
-
None
Description
When a Twig's RuntimeException is thrown in the prod environment inside the Admin back office, an additional exception "The build "ezplatform" is not configured" will be thrown.
Steps to reproduce
1. Clean installation of Ibexa DXP 4.3 in "prod" environment
2. Create a new field template templates/field_type.html.twig
{% block ezstring_field %} {% apply spaceless %} I'll break {{ 'not a number'|format_currency('EUR') }} {% endapply %} {% endblock %}
3. Add this configuration to config/packages/ibexa.yaml
system: default: field_templates: - { template: 'field_type.html.twig', priority: 255 }
4. In the Admin back office open a content containing Text Line field
Result
Two error messages will be shown:
Unable to format the given number as a currency in "field_type.html.twig". [in vendor/twig/intl-extra/IntlExtension.php:250]
The build "ezplatform" is not configured [in vendor/symfony/webpack-encore-bundle/src/Asset/EntrypointLookupCollection.php:45]
Expected result
Only a single error message is displayed:
Unable to format the given number as a currency in "field_type.html.twig". [in vendor/twig/intl-extra/IntlExtension.php:250]