Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I just updated to the latest 7.x-1.x-dev and it seems I cannot add Entity Reference: Referenced Entity relationship in views anymore. There is no error but nothing happens...
Only Entity Reference: Referencing entity works.
Comments
Comment #1
justinbevans CreditAttribution: justinbevans commentedI'm also experiencing this same issue. After selecting the checkbox to add an entity reference, Views just shows the loading gif and takes me back to the view without adding it to the filter or relationship. In my case I am using the most recent production, not dev version.
Comment #2
dddbbb CreditAttribution: dddbbb commentedSame issue here. No error, just nothing happens.
views 7.x-3.11
entityreference 7.x-1.1
Comment #3
dddbbb CreditAttribution: dddbbb commentedUpgrading to views 7.x-3.13 seems to fix this for me.
Comment #4
sbrousseau CreditAttribution: sbrousseau commentedUpgrading to Views 7.x-3.13 and Entity Reference 7.x-1.x-dev allowed me to add the relationship one time, but it is no longer working.
Comment #5
oana.hulpoi CreditAttribution: oana.hulpoi as a volunteer commentedSame issue here. I am using Views 7.x-3.13 and upgraded Entity Reference to 7.x-1.x-dev, but the referenced entity relationship is not added. Even so, the view is marked as "updated", the message "* All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard your changes." is displayed.
Comment #6
fox mulder CreditAttribution: fox mulder commentedSame issue here.
I have a view that lists commerce coupon entities. Commerce coupon has an entity reference field that connects the coupon to a commerce discount entity. I can not add commece discount relationship and discount related fields and filters to view.
The symptoms same like in post #5
Module versions:
Views: 7.x-3.14
Entity reference:
7.x-1.1+4-dev7.x-1.2+1-devComment #7
fox mulder CreditAttribution: fox mulder commentedhmmm it seems that the error occurs if the machine name of the referencing field is too long.
For example:
1. Node type A has an entityreference field named: field_this is_a_too_long_name that links to any entity
2. ... and another entityreference field called field_x.
3. Create a view that lists node type A nodes
4. ... and try to add an Entity Reference: Referenced Entity relationship based on field_this is_a_too_long_name field. Nothing happens.
5. Try to add an Entity Reference: Referenced Entity relationship based on field_x field. Works good.
Has anybody same experience?
Comment #8
jontyler CreditAttribution: jontyler commentedLength of the referenced machine name does appear to be the issue. I created 2 entity references:
The later works fine while the former fails the same as comment #5. This is consistent on other content types where I have tested creating new fields with shorter machine names, such as:
Since this is kind of a show stopper without changing the structure of the data, can we get this escalated?
Comment #9
fox mulder CreditAttribution: fox mulder commentedmaybe related: https://www.drupal.org/node/2464203