Coming from #2765919: Warning: array_flip(): Can only flip STRING and INTEGER and EntityMalformedException: Missing bundle property on entity of type group, but this pertains not only the Group module. This issue seems to have been resolved for Drupal 8 in #1067750: Let Field API fail in a tale-telling way on invalid $entity, however it has not back-ported yet and I couldn't find any issue for Drupal 7, so creating one. Correct me if there is already an active issue for Drupal 7.

Edit: In fact this issue might be not related to #1067750: Let Field API fail in a tale-telling way on invalid $entity at all, because the problem is reproducible by triggering "Create entity" rule for some entities that didn't require the "type" property. So this issue can be addressed on a module level, however Drupal core or maybe Rule module shouldn't break the website because of this error and handle the issue in more subtle way, maybe giving a warning to users.

Please take this to Rules module if that is proper place.

Comments

nickonom created an issue. See original summary.

nickonom’s picture

Issue summary: View changes

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.