lack of token name throws error in token 1.1.3 with photos 6.0.5

Created on 9 December 2023, about 1 year ago
Updated 20 January 2024, 11 months ago

Problem/Motivation

Photos 6.0.5 causes warning related to Token 1.1.3 module in Drupal 10.1.6 and 10.1.7:

Warning: Undefined array key "name" in Drupal\token\Token->prepareMultisort() (line 89 of modules/contrib/token/src/Token.php).

Discussed in this Tokenb module issue

https://www.drupal.org/project/token/issues/3372497 πŸ› Undefined array key "name" Needs review

Steps to reproduce

  • Flush cache
  • Navigate to Reports - Status Report
  • Top of page is warning.
  • Refresh page and warning goes away - only seen with first view of Status Report or some other admin pages after flushing cache.
  • If I navigate to mysite.com/admin/help/token I can see that all the other tokens have a name in the Name column, but photos_image does not.

Proposed resolution

If I understand the discussion in the Tokens module issue queue, the photos module needs to include a 'name' field.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pheski

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024