preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated

Created on 26 February 2023, over 1 year ago
Updated 4 March 2023, over 1 year ago

Problem/Motivation

When upgrading php from 5.6 to 8.1 I started getting this error
preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in SearchApiPorterStemmer->process() (line 58 of .../sites/all/modules/contrib/search_api/includes/processor_stemmer.inc).

Steps to reproduce

I am not sure why my site is sending a null value to this function.

Proposed resolution

For now I am just happy to remove noise from my watchdog log so I created a patch to return if the value is NULL

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Plugins

Created by

πŸ‡¨πŸ‡¦Canada circuscowboy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024