Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the file reference is empty index halts as isTemporary and isPrivate cannot handle an empty $file.
I am seeing the problem in 'callback_attachments_settings.inc' in the 'isFileIndexable' method.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3004208-index-halts-on-bad-file.patch | 1.1 KB | _wdm_ |
Comments
Comment #2
_wdm_ CreditAttribution: _wdm_ as a volunteer commentedpatch attached.
Comment #3
langelhc CreditAttribution: langelhc at Unleashed Technologies commentedThank you @_wdm_ patch #2 worked for me.
I had this error:
Recoverable fatal error: Argument 1 passed to SearchApiAttachmentsAlterSettings::isTemporary() must be of the type array, null given, called in /var/www/example/web/sites/all/modules/contrib/search_api_attachments/includes/callback_attachments_settings.inc on line 102 and defined in SearchApiAttachmentsAlterSettings->isTemporary() (line 626 of /var/www/example/web/sites/all/modules/contrib/search_api_attachments/includes/callback_attachments_settings.inc).
Comment #4
izus CreditAttribution: izus commentedThanks for this
Comment #6
izus CreditAttribution: izus commentedThis is now merged and will be part of next release. i'll release this now