Seeing errors like the following when loading a cart/checkout page if a registration is disabled for a product in the cart.

EntityMetadataWrapperException: Missing data values. in EntityMetadataWrapper->value() (line 83 of /.../sites/all/modules/entity/includes/entity.wrapper.inc).

To reproduce you can:

  1. Start an order on the order admin page. Add a line item with a product that has registration disabled.
  2. Set the status of the order to "Checkout: Registration". Save the order.
  3. Now go visit the /checkout/ checkout page. You should see the error.

[EDIT] This is not really an issue with commerce_registration, but a combination of recursive order entity object loading and newer revisions being created that do not get passed back down the call stack before routing in commerce_checkout_router(). Happens when both commerce_registration and commerce_extra_rules modules are both installed and enabled on a site.

The issue is being addressed in the commerce module: #2655184: Ensure the latest revision of an order is loaded before checkout routing so that the order object is checked against the latest revision before proceeding through commerce_checkout_router().

original issue posted by maddentim in #2057497: Skip registration page when no data is required from user.

Comments

acrazyanimal created an issue. See original summary.

acrazyanimal’s picture

Issue summary: View changes
acrazyanimal’s picture

Marking as "Closed works as designed" because there is nothing we can do to fix this in the commerce_registration module. Its out of our hands.