Active
Project:
Organization
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2016 at 11:18 UTC
Updated:
15 Jan 2016 at 09:20 UTC
Jump to comment: Most recent
In lights of missing documentation and instructions on how to use this module I went ahead to try and see it. Unfortunately, immediately after I enabled the module a Drupal Commerce site started to give the following error upon placement an order by anonymous user:
Type commerce_payment_transaction
Date Thursday, January 14, 2016 - 02:58
User Anonymous (not verified)
Location http://mysite.col/checkout/13/review
Referrer http://mysite.com/checkout/13/review
Message EntityMalformedException: Missing bundle property on entity of type user. in entity_extract_ids() (line 7879 of /home/mysite/public_html/includes/common.inc).
Severity error
Comments
Comment #2
pjcdawkins commentedWhat Drupal core version are you on? It will only work with 7.25 or higher.
What does the variable
drupal_anonymous_user_objectcontain (drush vget drupal_anonymous_user_object)?Comment #3
nickonom commentedThanks for replying.
Drupal version : 7.41
Comment #4
pjcdawkins commentedSo the Organization module sets that variable on install:
http://cgit.drupalcode.org/organization/tree/organization.install#n90
in the
_organization_ensure_anonymous_user_object()function.That's what ensures you won't get "missing bundle property on entity of type user".
Obviously something has stopped that happening, or undone that... I'm not sure what.
You could work around this with: