Hi,
I have the view widget running, but whenever I try to reference a node(article) I get the following error:
The referenced entity (node: 142) is invalid
Of course its not only with nid 142, I can try whatever node.
Any help very welcome, would be great to have it working.
Comments
Comment #1
brighteridea commentedDid you resolve this, I have the same trouble
Comment #2
JoergPf commentedno, unfortunately not
Comment #3
AlexanderPop commentedturn off caching in view you use to list items
Comment #4
bingorabbit commentedCaching was already turned off here, the problem disappeared when I unchecked the link to original content check in views for the title field which I used for the autocomplete search in the refernced entity field.
Hope this helps.
Comment #5
jienckebd commentedFor me, it required turning off the argument provided by the field to the view.
Comment #6
bojanz commentedShould all be fixed in the 2.x branch.
Test the 2.x branch and open new issues for any bugs you encounter.
Thank you for your patience.
Comment #8
mahalingam1984 commentedStill the issues persists in 2.x branch.
Comment #9
TimeBandit commentedI was getting this error on a View which allowed any content type. I had several exposed filters. I found the error disappeared when I removed the exposed filter "nid (node id)". A tradeoff for now; the user cannot filter content by NID.
Perhaps this issue is related: https://www.drupal.org/node/2154109
Comment #10
rwilson0429 commentedUnder the entity reference field settings, changing the Entity selection mode from "Views: Filter by an entity reference view" to "Simple (with optional filter by bundle)" resolved the issue for me.
Comment #11
alimbert commentedIt isn't an option to switch from "views:filter by an entity reference view" - so what other solutions exist?
Comment #12
ANANSFPL commentedCheck that the Entity Reference is not using filter criteria that is a number. We weren't able to save content types that had a blank search field ( eg: Postal Code ). Removed the field from the Filter Criteria from the Entity Reference but left it on the Widget made it work :)