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.

Issue fork uswds-3538447

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

euk created an issue. See original summary.

euk’s picture

Assigned: euk » Unassigned
Status: Active » Needs review

  • d4b85a7c committed on 3.x
    [#3538447] feat: Null pointer exception in uswds_register_theme_hooks...
jrglasgow’s picture

I just ran into this same problem. I have a commit made and pushed, will release a new version of the theme later today

jrglasgow’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.