WSOD when editing term reference fields with multiple vocabularies

Created on 22 November 2024, 30 days ago

Problem/Motivation

If a term reference field that allow multiple vocabularies is edited, a WSOD happens.

TypeError: {closure}(): Argument #1 ($label) must be of type string, array given in {closure}() (line 67 of /var/www/docroot/modules/contrib/tagify/tagify.module).

This happens when tagify_options_list_alter() processes $options assuming it's always an array of strings - when it's actually an array of arrays in the described scenario.

Steps to reproduce

  • Install Tagify
  • Create a term reference field that allows multiple vocabularies
  • Add Tagify support to that field on form display settings
  • Try creating the content containing that field

Proposed resolution

Update tagify_options_list_alter() to check for grouped terms in $options.

πŸ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡§πŸ‡·Brazil bember

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