Problem/Motivation

In Php 8.0 with empty search result scenario we are getting the below type error

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in apachesolr_multilingual_apachesolr_search_page_alter() (line 974 of /apachesolr_multilingual/apachesolr_multilingual.module)

Proposed resolution

Before calling the count() method need to verify if the object is countable or not. Proposing the attached patch to update the module version 7.x-1.3

Comments

suvasish.manna created an issue. See original summary.

suvasish.manna’s picture

Issue summary: View changes
suvasish.manna’s picture

suvasish.manna’s picture

Assigned: suvasish.manna » Unassigned
Status: Active » Needs review