Hello all,

I'm trying to get this module working, using Tika. I've downloaded and configured Tika and the module as suggested in the documentation and set my content to be reindexed. Checking the drupal logs, I get the following:

Notice: Undefined property: SearchApiAttachmentsAlterSettings::$CACHE_TABLE in SearchApiAttachmentsAlterSettings->getFileContent() (line 143 of /var/www/vhosts/example.com/sites/all/modules/search_api_attachments/includes/callback_attachments_settings.inc).

The cache table, cache_search_api_attachments, is empty and doing a search for content within a particular PDF results in no matches. I'm using the latest dev version. I've put some debugging code in function extract_tika in callback_attachments_settings.inc. and at least the function is being called.

Any ideas?

Thanks,

welly

CommentFileSizeAuthor
#2 search_api_attachments_2188735_2.patch1.05 KBizus

Comments

izus’s picture

i think i've got it, we try accessing a constant not a property.
i'll upload a patch

izus’s picture

StatusFileSize
new1.05 KB

here is a patch for it.
can you plase try it and give feedback if it worked well ?
Thanks

izus’s picture

Status: Active » Needs review
maximpodorov’s picture

Status: Needs review » Reviewed & tested by the community

Absolutely right. The patch solves the problem.

izus’s picture

Status: Reviewed & tested by the community » Fixed

merged.
Thanks all

welly’s picture

Thanks very much Izus for rolling out this fix so quickly! Very much appreciated!

Status: Fixed » Closed (fixed)

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