Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to edit (http://xxxxx.com/admin/commerce/orders/XXX/edit)
an order, I'm getting the following error:
EntityMalformedException: Missing bundle property on entity of type commerce_customer_profile
(screenshot attached)
Did not find a solution, what might be wrong?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#9 | commerce-customer-missing-profile-type-1577596.patch | 1 KB | Berdir |
#4 | installed_modules.gif | 2.51 MB | Abilnet |
commerse-error-when-editing-an-order.png | 35.8 KB | Abilnet |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedHmm, nothing should cause this that I'm aware of. What other modules do you have on the site, and does that order possibly reference a non-existent customer profile?
Comment #2
rHOnDO CreditAttribution: rHOnDO commentedRyan;
I'm getting the same error when trying "Continue to next step" during checkout. I believe this step is supposed to automatically create a customer profile but it is not (there are no customer profiles in the db). I have also received the same error only referencing "commerce_product."
Be advised, this is an existing site which already had Commerce (just commerce and price) and addressfield modules installed, and it wouldn't let me follow the prescribed install sequence. I installed a test site on my local machine via Commerce Kickstart and it works without issue, but starting over from scratch is not an option on the existing site.
Here is the text of the commerce_product error, both errors reference the same line in common.inc:
EntityMalformedException: Missing bundle property on entity of type commerce_product.
in entity_extract_ids() (line 7501 of /var/aegir/platforms/blessed-drupal-7.x-2.0-alpha2/includes/common.inc).
rHO
Comment #3
rHOnDO CreditAttribution: rHOnDO commented@rszrama, @Abilnet;
I'm not 100% sure what worked, (I made numerous changes, manually changing tables, running commerce_repair (even though it is supposed to be depracated), multiple cache clears) but the one that seemed to work was updating EVA to the 7.x-1.x-dev version dated 9/19/2011. At any rate, my issue is fixed.
rHO
Comment #4
Abilnet CreditAttribution: Abilnet commentedThanks Ryan and rHOnDO, your help appreciated.
I, too, have installed Commerce with the "Kickstart" distro. However I do have a lot of additional modules installed (screenshot)
I'll try Commerce Repair, thanks rHO for the tip!
Comment #5
Abilnet CreditAttribution: Abilnet commentedAn update:
The error disappeared.
I believe my Token 7.x-1.0 had something to do with the problem, because when I'd upgrade Token -module to 7.x-1.1 everything seems to be working again.
Comment #6
rszrama CreditAttribution: rszrama commentedAlrighty, let's go ahead and close this unless we can come up with a consistent problem in Commerce itself; I'm glad the various module updates worked out. I'm guessing those modules interacted with the Entity API module in some way so as to prevent it from functioning properly here.
Comment #7
Abilnet CreditAttribution: Abilnet commentedGot the Original Post -error (screen shot) again (this time the error appeared during check out).
I think an issue in EVA -module was the origin of the problem. After applying This Fix the error went away. Hopefully this helps someone in similar situation.
Comment #8
akamaus CreditAttribution: akamaus commented@Abilnet, Thanks! Recently I updated an outdated site and ran into the same problem. Installing dev version of eva instead of 1.1 as suggested in thread you gave a link to in #7 helped.
Comment #9
BerdirRe-opening this, the actual reason for this is IMHO that we're trying to display a customer profile reference field for a customer profile type that does not exist anymore. Then it creates an empty new profile with no bundle and blows up.
While that is nothing that is supposed to happen, it can and protecting against it is easy enough. Patch attached, please test.
Comment #10
rszrama CreditAttribution: rszrama commentedCommitted.