If the user entity does not have the name attribute set then the token cannot be created and a watchdog notice occurs. This happens for non-authenticated users and where additional contrib modules are used that do not use the name attribute on all user types.

CommentFileSizeAuthor
#2 realname-2661750.patch492 bytesCarlHinton
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

CarlHinton created an issue. See original summary.

CarlHinton’s picture

FileSize
492 bytes

Patch to fix attached

hass’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Why should the name not set? Every account has a username.