Error from non-existent config setting

Created on 6 December 2024, 4 months ago

Problem/Motivation

The .module file references a non-existent config setting. I am sure it causes many issues, but in particular I experienced errors while trying to import content using single content sync:

[error]  TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array() (line 124 of /var/www/html/web/modules/contrib/ark/ark.module) #0 /var/www/html/web/modules/contrib/ark/ark.module(124): in_array('page', NULL)

The NULL comes from the evaluation of \Drupal::config('ark.settings')->get('ark_node_types')
So this error occurs when there is not setting for ark_node_types

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

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

Comments & Activities

Production build 0.71.5 2024