Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.5.8
-
Required setup
Clean installation of ezPlatform 2.5.8
Description
Steps to reproduce:
1. Create a new ContentType (myimage identifier) with ImageAsset field with asset identifier.
2. Set up a new image variation:
ezpublish: system: default: image_variations: square: reference: null filters: - {name: geometry/scaledownonly, params: [100, 100]}
3. Extend full template for the newly created ContentType:
ezpublish: system: site_group: content_view: full: myimage: template: full/myimage.html.twig match: Identifier\ContentType: myimage
{% block content %} {% set image_alias_field = ez_field(content, 'asset') %} {% set alias = ez_image_alias(image_alias_field, content.versionInfo, 'square') %} <img src="{{ alias.uri }}"> {% endblock %}
4. Create new Content of created ContentType and view it using the full URL.
5. Clear cache if the exception does not occur.
Result:
500 Exception
Expected result:
No exception