TypeError array_merge(): Argument #2 must be of type array, null given

Created on 14 January 2025, 3 months ago

Problem/Motivation

Bug introduced in https://www.drupal.org/project/ai/issues/3472296 [ai_content] Provide an option to use a vocabulary on Suggest taxonomy Fixed

When the taxonomy reference field does not have "Standard" under "Reference method", a WSOD is produced when editing the entity because of a type error.

Steps to reproduce

  • Create a taxonomy reference field, use another reference method than Standard (for example: a View)
  • Enable the ai_content_suggestions module
  • Edit the node
  • A WSOD will be thrown

Proposed resolution

Make sure the array_merge function always gets arrays as arguments.

Remaining tasks

Open MR.

User interface changes

-

API changes

-

Data model changes

-

🐛 Bug report
Status

Active

Version

1.0

Component

Other Submodules

Created by

🇳🇴Norway efpapado

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