Getting error when enable processors for File attachments.
Error: Call to undefined method Drupal\search_api_attachments\Plugin\search_api\processor\FilesExtrator::getExcludedMimes() in Drupal\search_api_attachments\Plugin\search_api\processor\FilesExtrator->submitConfigurationForm()
Solution:
Calling undefined method in search_api_attachments\src\Plugin\search_api\processor\FilesExtrator.php file. Please use the below code
$excluded_mimes_array = $this->extractFileValidator->getExcludedMimes($excluded_extensions_array);
instead of
$excluded_mimes_array = $this->getExcludedMimes($excluded_extensions_array);
Comments
Comment #2
rovoThank you Selvakumar! That fixed it for me too.
I created a patch from your suggestion.
Comment #3
mkalkbrennerpatch works for me
Comment #4
izus commentedThanks for the patch
Comment #6
izus commentedThanks all
this is now merged