Closed (cannot reproduce)
Project:
Commerce Core
Version:
7.x-1.0-beta4
Component:
Commerce
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2011 at 18:56 UTC
Updated:
30 Jun 2011 at 01:31 UTC
I was wondering if it was possible to remove the rules in commerce that create a user account for anonymous users when they complete an order.
In the site we are creating we don't have a need for users and don't wish to have users created for orders. I tied disabling the rule "Assign an anonymous order to a pre-existing user" and "Create a new account for an anonymous order" but I got a few errors when I did this.
Was just wondering if you could see any problems occurring because of this change.
Thanks
Comments
Comment #1
rszrama commentedWhat are the errors? You should be able to disable these just fine.
Comment #2
khiminrm commentedSubscribe
Comment #3
erichomanchuk commentedI got an error from the user module when I first disabled "Create a new account for an anonymous order" So i just wanted to make sure that disabling these rules wouldn't effect commerce. I have disabled these rules now and everything seems to be running as normal.
I got the error when I was within configuration screen for the rule and when in settings I unchecked ative and saved it, but after refresh they went away. FYI Here was the error.
Notice: Trying to get property of non-object in user_access() (line 774 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 786 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 787 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 793 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 796 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in commerce_payment_transaction_access() (line 906 of /_work/NPS-CAS-newparamount.com/_website/sites/all/modules/contrib/commerce/modules/payment/commerce_payment.module).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 177 of /_work/NPS-CAS-newparamount.com/_website/includes/entity.inc).
Notice: Trying to get property of non-object in user_access() (line 774 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 786 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 796 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 774 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 786 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 796 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in commerce_payment_transaction_access() (line 906 of /_work/NPS-CAS-newparamount.com/_website/sites/all/modules/contrib/commerce/modules/payment/commerce_payment.module).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 177 of /_work/NPS-CAS-newparamount.com/_website/includes/entity.inc).
Notice: Trying to get property of non-object in user_access() (line 774 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 786 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 796 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in commerce_payment_transaction_access() (line 906 of /_work/NPS-CAS-newparamount.com/_website/sites/all/modules/contrib/commerce/modules/payment/commerce_payment.module).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 177 of /_work/NPS-CAS-newparamount.com/_website/includes/entity.inc).
Notice: Trying to get property of non-object in user_access() (line 774 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 786 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Notice: Trying to get property of non-object in user_access() (line 796 of /_work/NPS-CAS-newparamount.com/_website/modules/user/user.module).
Comment #4
rszrama commentedHmm, I can reproduce the errors, but I have no clue what's causing them. This is the first I've seen of them, so it could just be a bug in Rules. It's only happening on save, and it's odd that it's trying to call commerce_payment_transaction_access() when these Rules have nothing to do with payment transactions. It's worth checking to make sure we're not screwing something up in our Rules integration now that we've changed how our entity controllers are defined, so I'll leave this open here for a bit... but ultimately we may just need to escalate this to the Rules queue.
Comment #5
erichomanchuk commentedThanks,
Everything seems to be running as normal with these rules turned off.
Comment #6
xlyz commentedI have the same error, while adding a create entity action (tried creating node, user, commerce order, commerce delivery and all of them show the same error). Given that last time I used it (end of may) it was working fine, I guess it has to be with an api change. Any hint where to look at?
Comment #7
xlyz commentednever mind. updating to latest dev solved the problem
Comment #8
rszrama commentedAgreed, looks like this problem was fixed in Rules, as I can no longer reproduce this problem after updating to the latest dev of Entity / Rules.