Problem/Motivation

When the config is empty we get white screen of death on search and "TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in search_exclude_nid_query_search_node_search_alter()"

Steps to reproduce

- Add nids to the config, then remove those nids.
- Try to trigger a search
=> php error

Proposed resolution

Add no empty before count

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

benellefimostfa created an issue. See original summary.

benellefimostfa’s picture

Status: Active » Needs review

stefan lehmann’s picture

Thank you Mustapha! Just merged and made a release and all from the couch on my phone. :-)

It all looked straight forward enough.

stefan lehmann’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.

benellefimostfa’s picture

Status: Fixed » Closed (fixed)

Wow ! that was quick, thank you Stefan.