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_ commentedpatch attached.
Comment #3
langelhc 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 commentedThanks for this
Comment #6
izus commentedThis is now merged and will be part of next release. i'll release this now