Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Plugins
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
12 Sep 2024 at 15:17 UTC
Updated:
26 Oct 2024 at 15:34 UTC
Jump to comment: Most recent
When indexing certain items are causing the below warning on PHP 8.2:
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/docroot/modules/contrib/search_api/src/Plugin/search_api/processor/HtmlFilter.php on line 201
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
Comment #3
j-barnes commentedComment #7
drunken monkeyThanks for reporting this problem!
However, instead of just fixing the symptom, we should fix the root cause, i.e., the
preg_replace()call failing. This probably happens sometimes when the matched strings get too large.I created MR !167 for replacing the
preg_replace()with a more performant version, which should fix the problem.Comment #9
drunken monkey