Hi, firstly, thanks for your work on this module and the fact that it is so well supported that I feel there's a realistic possibility of getting help by filing an issue :)

Secondly, I'm not an experienced issue filer as I've pretty much always been able to solve my Drupal queries by reading other issues first. However, I'm not making any headway on this one, so I'll do my best to outline the situation.

To start with, my problem: I'm not getting attachments to show up as search results and I'm getting a lot of the following errors in my dblog during cron runs: array_merge(): Argument #2 is not an array in /var/www/archive/sites/all/modules/filefield/filefield_field.inc on line 309.

I'm running Drupal 6.26, FileField 6.x-3.10, Search Files 6.x-2.x-dev and Search by Page 6.x-1.15. I have the Search by Page Nodes and Attachments sub-modules enabled. I have pdftotext set up on my web server and I've tested that it works via command line. It is then also used to set up a helper function in Search Files.

Then I've got a content type Record with a number of filefields attached to it. I've set up a search environment and under the Node settings I've selected my Record content type. Under the Attachments settings I've also selected the Record content type as well as the specific filefield that I want the attachments of to be indexed. Under both these sub-modules I've assigned a role that has privileges to both edit and view the node and filefield that I've selected in my search environment setup. I am using Content Permissions, but I've checked and everything should be fine there.

I've re-indexed my search index and ran cron on a number of occasions and I'm reaching a 100% indexing score. However, when I go to by recent log entries report I can see a whole list of the errors I've posted above, linked to the Search by Page indexing user.

I've looked at line 309 of filefield_field.inc, but I'm afraid my skills aren't up to the level to address the issue further. Any help would be appreciated!

Thanks,
Henno

Comments

jhodgdon’s picture

I haven't tested Search by Page version 6.x with that specific version of FileField - the last time I tested it, I used 6.x-1.10. Unfortunately, FileField is a moving target and they tend to make incompatible changes with each release, so maybe that is the problem...

Is there any chance you could try using FileField (and probably ImageField) version 6.x-1.10 for now?

henno.gous’s picture

Unfortunately not... the site is quite heavy on the handling of files and there are a whole number of modules involved with the current functionality. Any alternatives that I could investigate? I'm migrating the site to a new server soon where I will have more control over the technology stack. Perhaps something like Solr search?

jhodgdon’s picture

Well, I'm not going to have a chance to build a test site with the same versions you are using and test it for at least a few days, sorry! I have several other volunteer responsibilities in the Drupal project, plus a lot of paying work to do this week....

Maybe you could build a small test site with just Search by Page and either the slightly older or the current version of FileField, and just one or two files, and see if you can isolate the problem?

henno.gous’s picture

No worries, not expecting you to solve this all by yourself :) How about cheating the system and rather going for the Search Directories sub-module? Will have to check, but I suspect all the FileField uploads are going the same directory on the server...

Will test it later today and get back to you!

jhodgdon’s picture

Search Directories is not compatible with Search by Page at this time. You could potentially make a Search by Page sub-module that would work with it, but that would involve a bit of programming.

jhodgdon’s picture

Status: Active » Closed (won't fix)

At this point I think I'm not going to debug the 6.x version of Search by Page. Sorry...