Warnings when module is enabled but config has not yet been set

Created on 14 February 2025, about 2 months ago

Problem/Motivation

As soon as you enable the module, warnings appear on every page:

Warning: Trying to access array offset on value of type null in algolia_search_interface_preprocess_html() (line 12 of modules/contrib/algolia_search_interface/algolia_search_interface.module).

(and the same for lines 13, 14, 15, and 16)

Steps to reproduce

1. enable the module
2. don't set config
3. visit any page

Proposed resolution

Check config before trying to read it

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇬🇧United Kingdom malcomio

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