Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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().
Comment | File | Size | Author |
---|---|---|---|
#1 | install_profile_api-undefined-property-1142448.patch | 423 bytes | tsnelgrove |
Comments
Comment #1
tsnelgrove CreditAttribution: tsnelgrove commentedCreated 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()'