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.

CommentFileSizeAuthor
#2 3004208-index-halts-on-bad-file.patch1.1 KB_wdm_
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

_wdm_ created an issue. See original summary.

_wdm_’s picture

patch attached.

langelhc’s picture

Status: Active » Reviewed & tested by the community

Thank 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).

izus’s picture

Thanks for this

  • izus committed 5729316 on 7.x-1.x authored by _wdm_
    Issue #3004208 by _wdm_, langelhc, izus: isFileIndexable halts indexing...
izus’s picture

Status: Reviewed & tested by the community » Fixed

This is now merged and will be part of next release. i'll release this now

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.