When an anonymous user orders a drupal site by going through the Ubercart checkout process, a new user account is created on the Drupal Hostmaster website using the supplied name and email address (or a derived name if none was supplied).
The user is advised of the account creation and given a one-time url to login (also, the site can be configured to log him/her in automatically). The order is recorded and set to pending or payment received depending on what payment mechanism is chosen.
At a later stage, the order becomes "completed" (either by manual intervention or conditional actions) and at that point a new aegir "client" record is created and the ordered website provisioned.
During this process, the uc_hosting module updates the drupal user record (on the Hostmaster site), to give the user the role of "aegir client", and at the same time overwrites the email address with an empty string.
The offending code is in line 268 of the file uc_hosting.module, viz:
$edit['mail'] = $client->mail;
but the $client object does not have a "mail" attribute at this point. Commenting out line 268 stopped the problem from occurring.
Comments
Comment #1
jayelless commentedSorry - line number is 266.
Comment #2
gboudrias commentedI think this is fixed? I don't have the same problem anymore and can't find the problematic line. I think it's been fixed somewhere along the line.
Could you please test and reopen if you're still experiencing the problem?
Thanks!