This is a result of the fact that $account->uid is getting accessed without first checking for it's existence. Passing in an account object, with uid set to 0, works around this error and doesn't change the intended flow of logic within install_add_user().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tsnelgrove’s picture

Created a patch, which fixes the call to user_save() in install_add_user() (in user.inc) so that it is no longer causing following error: 'Undefined property: stdClass::$uid in user_save()'