- Issue created by @mohammad-fayoumi
- Status changed to Needs review
over 1 year ago 10:59am 16 July 2023
When invoking the getRealpath() function in Drupal's Search API Attachments module, an error is encountered:
Error: Call to a member function getExternalUrl() on bool in Drupal\search_api_attachments\TextExtractorPluginBase->getRealpath() (line 155 of modules/contrib/search_api_attachments/src/TextExtractorPluginBase.php).
This error occurs when the $wrapper variable is evaluated as a boolean (bool) value (false) instead of an object.
Run the site system cron.
Add appropriate error handling in the code to handle scenarios where the wrapper cannot be retrieved ($wrapper evaluates to false) and return null.
None
None
None
Needs review
9.0
Code