Edit: This only seem to happen if you switch media-types of existing nodes from one to another new one. Not sure if that is even related to this module

Problem/Motivation

When you add a relationshop in views to a media entity reference field, there will be no images generated.
The field without any rference usage will work! But then you lack formatters and other data.

The views query you can check will result in no results. It seems using pathauto breaks the relationships somehow.

SELECT media_field_data_node__field_texture.langcode AS media_field_data_node__field_texture_langcode, node_field_data.created AS node_field_data_created, node_field_data.nid AS nid, media_field_data_node__field_texture.mid AS media_field_data_node__field_texture_mid
FROM
{node_field_data} node_field_data
LEFT JOIN {node__field_texture} node__field_texture ON node_field_data.nid = node__field_texture.entity_id AND node__field_texture.deleted = '0'
LEFT JOIN {media_field_data} media_field_data_node__field_texture ON node__field_texture.field_texture_target_id = media_field_data_node__field_texture.mid
WHERE ((node_field_data.nid = '23112')) AND (node_field_data.status = '1')
ORDER BY node_field_data_created DESC

Steps to reproduce

Add a media entity reference field that you have attached to a node in views.
Try to display the image in a block in that node.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
ffp_media2.jpg76.34 KBmarcoka
ffp_media.jpg69.15 KBmarcoka

Comments

marcoka created an issue. See original summary.

marcoka’s picture

Issue summary: View changes
marcoka’s picture

Issue summary: View changes
voleger’s picture

Component: Code » Compatibility