Hey,
I came up against this error yesterday. I'm not sure which part of the following was the cause of the issue, but I wanted to document it in case it helps anyone/maintainers:
I got a EntityMalformedException: site:drupal.org Missing bundle property on entity of type node. in entity_extract_ids() (line 7633 of common.inc) error under the following conditions:

* a view (with a contextual filter of nid) had a rules_link field
* the rules_link field had a relationship to another nid entity through entityreference module

when logged out, the nodes were accessible - both those with and without the relationship (the link was hidden in those cases)

when logged in, the nodes which had a relationship were visible, but those that did not came up with a screen of death with the above error.

I removed the relationship in views and it worked again. I then rebuilt the relationship using rules instead of views and it all seems OK now - so i think its something to do with the combination of rules_link and entityreference where you don't have a reference defined. Once fixed the link was hidden when there was no relationship, as you'd expect.

I hope this helps!

Comments

jpstrikesback’s picture

Issue summary: View changes
StatusFileSize
new653 bytes

I found this as well, under certain conditions (views relationships) Rules Link views integration may send an empty entity var into entity_extract_ids which subsequently chokes. Patch simply returns false if there is no entity value to pass.

lunk rat’s picture

Version: 7.x-1.0-beta4 » 7.x-2.x-dev

It would be great to be able to use views relationships to show rules links for entities other than the base entity in a view. There are many use-cases where this is needed. Has anyone had success with this?

kenorb’s picture

Status: Active » Needs review
kenorb’s picture

Priority: Critical » Major
Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

Patch #1 solved my issue, having a view with a rules_link in a referenced entity relationship.
Thanks for the patch.
Changing to RTBC.