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

nickonom created an issue.

pjcdawkins’s picture

What Drupal core version are you on? It will only work with 7.25 or higher.

What does the variable drupal_anonymous_user_object contain (drush vget drupal_anonymous_user_object)?

nickonom’s picture

Thanks for replying.

Drupal version : 7.41

drush vget drupal_anonymous_user_object
No matching variable found.
pjcdawkins’s picture

So 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:

drush vset --format=json drupal_anonymous_user_object '{"bundle":"user"}'