Problem/Motivation

Getting a warning message in Status Report page(/admin/reports/status) "Tokens or token types missing name property" for a new custom field created for User under Configuration(/admin/config/people/accounts/fields).

Steps to reproduce

1. Install Drupal9 along with Token Module
2. Create a new field of Password field type.
3. After enabling these will get a error message for token user:custom_field:value.

Proposed resolution

Created a patch.

Remaining tasks

Review the patch.

User interface changes

API changes

Data model changes

Issue fork token-3357610

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

  • 8.x-1.x Comparecompare

Comments

sakthi_dev created an issue. See original summary.

sakthi_dev’s picture

Status: Active » Needs review
StatusFileSize
new1.51 KB

Please review.

sakthi_dev’s picture

Assigned: sakthi_dev » Unassigned
jjose.quevedo’s picture

Hi, I've applied this patch and it worked correctly. Thanks

oscarnovasf’s picture

I've applied this patch and it worked correctly

pilot3’s picture

It worked for me. Thanks!

niklp’s picture

Status: Needs review » Reviewed & tested by the community

Applied patch #2 when a field's token appeared in the status report and nobody could work out why.

Patch applied cleanly and resolved the warning.

Marking as RTBC but needs some senior eyes on it before commit I would suggest.

dru-seeker’s picture

StatusFileSize
new1.19 KB

Greetings,
This issue manifested for me again after updating to drupal/token 8.x-1.17 with Drupal Core 11.3.2. I have created a similar patch for the issue.

lobsterr’s picture

StatusFileSize
new1.44 KB

reroll patch #2, because the code was moved from token.tokens.inc to classes

berdir’s picture

Version: 8.x-1.11 » 8.x-1.x-dev
Status: Reviewed & tested by the community » Needs work

This needs to be converted to a merge request.