EntityMalformedException error for multiple events at checkout

Created on 4 January 2016, over 9 years ago
Updated 28 February 2025, about 2 months ago

Recently upgraded the Commerce Registration module on a client's website from version 7.x-2.0-beta5 to 7.x-2.1.

All seemed fine but then we got some users reporting fatal errors at checkout. Looking at the logs they all throw this error:

EntityMalformedException: Missing bundle property on entity of type registration. in entity_extract_ids() (line 7879 of /includes/common.inc).

I tracked down the error and found that it only happened if there were 2 or more events in the user's cart. So with 1 event or with 1 event plus a non-event commerce line item no error occurred.

So then tried switching to the 7.x-2.x-dev (dated 2015-Dec-10) and the error disappeared.

At the moment I haven't got time to test if the same error happens for a vanilla install so it is possible the error is specific to this particular website, but am posting this issue in case it's a widespread issue that needs to be addressed.

πŸ› Bug report
Status

Closed: outdated

Version

2.1

Component

Checkout

Created by

πŸ‡¬πŸ‡§United Kingdom vali hutchison

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024