When logged in as a user with create permissions for the nodes I get the error
CerException: Cannot create invalid reference to remote entity. in CerHandler->reference() (regel 286 van /var/www/html/xxxx/sites/all/modules/cer/handler.inc).
When logged in as administrator everything works correctly. Am a bit lost why it is not working when logged in as a user and which permission (seems like a permissions problem) is missing.
Checked if in line 260 ( ->validateReferencableEntities(array($this->id)),) in handler.inc the $this->ID is present. It should return with a valid node but it does not.
In file modules/entityreference/plugins/selection/EntityReference_SelectionHandler_Generic.class.php we will find the function validateReferencableEntities which gets the node. However although there is a node ID it can not get the node since it is not yet in the database.
Comments
Comment #1
erald commentedIf I give a user Bypass content access control permissions everything is working. But rather not give a user who only can edit these nodes this permission.
Comment #2
fehin commentedHaving the same problem.
Comment #3
aze2010 commentedsubscribing
Comment #4
damien tournoud commentedThis seems to be specific to Corresponding Entity Reference.