Missing data in commerce_registration_information_review

Created on 10 October 2018, about 7 years ago
Updated 28 February 2025, 8 months ago

I am experiencing an issue where checkout is unable to complete on certain registrations because of missing data within the function commerce_registration_information_review.

It seems that in certain circumstances the $order->data array does not have a valid value for the iterator $i in the line:

$entity = $order->data['register_entities'][$prodkey][$i];

It also seems that sometimes the following line results in a EntityMetadataWrapper Exception because this function call returns FALSE:

$email = $reg_wrapper->mail->value();

This line was introduced in this patch: https://www.drupal.org/project/commerce_registration/issues/1901854#comm... β†’

I've been unable to determine exactly why certain registrations fail at this stage. Many work perfectly, and I've seen 3 registrations going through a checkout process where 2 of them work as designed and the third fails. From my testing this seems to only occur when multiple registrations are purchased in a single order. It affects both anonymous and logged in users.

The Entity module was updated to 7.x-1.9 in February: https://www.drupal.org/sa-contrib-2018-013 β†’

This site is using the 1.x branch of Entity Registration: https://www.drupal.org/project/registration/releases/7.x-1.6 β†’

What could be causing index lookup failures and empty email field data? Any advice or troubleshooting tips would be appreciated.

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada nerdcore

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