Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Developer experience
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 May 2012 at 11:17 UTC
Updated:
29 Mar 2013 at 21:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
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 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 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 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 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 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 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 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 commentedCommitted.