mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated

Created on 17 February 2023, over 1 year ago
Updated 6 September 2023, about 1 year ago

Problem/Motivation

Deprecated function: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in popular_search_keywords_search_api_query_alter() (line 34 of modules/contrib/popular_search_keywords/popular_search_keywords.module).

Steps to reproduce

Install and check the dblog

Proposed resolution

To fix this issue, you should ensure that the $originalKeys variable is not null before calling the mb_strtolower() function.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇵🇹Portugal ricardofaria

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024