[PHP8.1] Deprecated function: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in apachesolr_clean_text()

Created on 27 July 2023, 11 months ago
Updated 28 July 2023, 11 months ago

Problem/Motivation

On php 8.1 I catched php warning. Deprecated function: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in apachesolr_clean_text().

Steps to reproduce:

1) Create node with empty field of Text type.
2) Run drush solr-mark-all.
3) Run drush solr-index.

Root cause:

In apachesolr_multilingual_fields_default_indexing_callback_implementation()null is passed to apachesolr_clean_text().

πŸ› Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus alena_stanul

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

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

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024