Warning: Trying to access array offset on value of type null in Drupal\autotagger_search_in_text\Plugin\Autotagger\SearchInTextFields->entityPresave()

Created on 4 March 2024, 10 months ago
Updated 26 March 2024, 9 months ago

When saving a node bundle type that does NOT have SearchInText settings saved, an error is thrown in entityPresave(). Because $settings is derived from ThirdPartySettings that are not set, $settings['autotagger_tag_on_create_only'] returns a null value on the array key. We need to check to see if $settings is empty or not before proceeding.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States brooke_heaton

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