On our latest store, using code form the Bazaar, we have discovered a small problem with some orders - like one out of 200 - which is processed and paid for but still has uid set to 0.
I haven't been able to reproduce this myself, but it's happening from time to time. It seems to be a combination of anonymouse chekcout and custom payment module, but looking at the code and the data in the database, I just can't see where the problem should be.
The latest order with this problem was created with timestamp 1216010638 with user created at 1216011250.
Order primary_email is correct and therefore the code in uc_cart_complete_sale() should have either picked up the right uid or created a user and then updated the order with the right uid. But uid is still 0.
Because of this I can't really see where our custom payment module could interfere either... As long as uc_cart_complete_sale() is called and the order has a primary_email, order->uid should be updated and not remain 0.
Has anyone else experienced anything like this? I'm a bit unsure about where to look so any tips will be greatly appreciated.
Edited:
Because I write english like a norwgian =/


Joined: 08/08/2007