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

Command icon Show commands

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

vishal.kadam created an issue. See original summary.

vishal.kadam’s picture

Status: Active » Needs review
StatusFileSize
new478 bytes

izus’s picture

Thanks for this

  • vishal.kadam authored 548bc3b3 on 9.0.x
    Issue #3411355 by vishal.kadam, izus: Deprecated function: mb_strcut():...
izus’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.