Deprecated function: mb_strcut(): Passing null to parameter #1 ($string) of type string is deprecated

Created on 29 December 2023, 6 months ago
Updated 12 January 2024, 6 months ago

Problem/Motivation

Run cron or reindex solr data on a site which has files to be extracted, but the file is missing/delete but Drupal thinks its there in the file managed table.

Deprecated function: mb_strcut(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\search_api_attachments\Plugin\search_api\processor\FilesExtractor->limitBytes() (line 412 of modules/contrib/search_api_attachments/src/Plugin/search_api/processor/FilesExtractor.php).

Steps to reproduce

Have a site missing files that should be indexed by SOLR
Run cron
See error

Proposed resolution

limitBytes($extracted_text) test that extracted_text is not NULL

🐛 Bug report
Status

Fixed

Version

9.0

Component

Code

Created by

🇮🇳India vishal.kadam Mumbai

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024