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

justinbevans’s picture

I'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.

dddbbb’s picture

Same issue here. No error, just nothing happens.

views 7.x-3.11
entityreference 7.x-1.1

dddbbb’s picture

Upgrading to views 7.x-3.13 seems to fix this for me.

sbrousseau’s picture

Upgrading 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.

oana.hulpoi’s picture

Same 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.

fox mulder’s picture

Same 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-dev 7.x-1.2+1-dev

fox mulder’s picture

hmmm 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?

jontyler’s picture

Length of the referenced machine name does appear to be the issue. I created 2 entity references:

  • field_order_item_order
  • field_oi_order

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:

  • field_order_item_vendor_product
  • field_oi_vp

Since this is kind of a show stopper without changing the structure of the data, can we get this escalated?

fox mulder’s picture