PHP Fatal error: Call to undefined method stdClass::type() in rules/modules/entity.eval.inc on line 218

I have a rule component rule that works on an entity:

Entity is of type
Parameter: Entity: [entity], Entity type: Node
and checks if this entity has certain fields

I call this rule from vbo and it does not execute because of above error.

Comments

qichanghai’s picture

Hade the same issue for an entity passed to a custom event, and found out that entity wrapper instead of entity should be passed to event as argument.

TR’s picture

Status: Active » Closed (cannot reproduce)

Not enough information to reproduce the error, and there have been no other reports of the same error. And at this point, it's unclear if the problem still exists in the current version of Rules.

If you experience this problem, please open a new issue and give detailed steps to reproduce the error. If you are using a custom event/condition/action, try to reproduce the error with only the built-in Rules events/conditions/actions. Export your Rule and post it there, and post your custom code there too.