Null pointer exception in uswds_register_theme_hooks()

Created on 28 July 2025, about 1 month ago

The uswds_register_theme_hooks() hook implementation makes an assumption that the theme registry entries contain process functions or preprocess functions array elements defined. However, these elements are present only if corresponding callbacks have been defined for a given hook. As such, uswds_register_theme_hooks() runs into a NULL pointer exception when executing the code on line 125:
!in_array($callback, $entry["$type functions"].

I am experiencing this on Drupal 11.2, so maybe there are changes in Drupal API related to this.

πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States euk

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