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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3411355-deprecated-function-mbstrcut.patch | 478 bytes | vishal.kadam |
Issue fork search_api_attachments-3411355
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
Comment #2
vishal.kadamComment #4
izus commentedThanks for this
Comment #6
izus commented